php artisan make:resource UserResource
return new UserResource(User::findOrFail($id));
php artisan make:resource UserCollection
return new UserCollection(User::all());
php artisan make:resource UserResource
return new UserResource(User::findOrFail($id));
php artisan make:resource UserCollection
return new UserCollection(User::all());