laravel advance api resource with relation code example
Example: laravel make api resource
php artisan make:resource User --collection
php artisan make:resource UserCollection
php artisan make:resource User --collection
php artisan make:resource UserCollection