laravel make resource route code example
Example 1: laravel create controller
php artisan make:controller MyController
Example 2: laravel create resource controller
Route::resource('photos', 'PhotoController');
php artisan make:controller MyController
Route::resource('photos', 'PhotoController');