php artisan make resource code example
Example: laravel resource command
//creating a resource collection
php artisan make:resource ResourceCollectionName --collection
//creating a resource
php artisan make:resource ResourceName
//creating a resource collection
php artisan make:resource ResourceCollectionName --collection
//creating a resource
php artisan make:resource ResourceName