laravel resource list code example
Example 1: laravel create resource controller
php artisan make:controller PhotoController --resource
Example 2: use resource in laravel 8
php artisan make:controller PhotoController --resource --model=Photo
Example 3: laravel resource command
//creating a resource collection
php artisan make:resource ResourceCollectionName --collection
//creating a resource
php artisan make:resource ResourceName