laravel add route for all controller 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');