DEV Community

Discussion on: Laravel Inertia and API Resources

Collapse
 
najibu profile image
Najibu Nsubuga

You could use UserResource::make($user) instead of creating a new method toResource.