how to remove controllers and its dependecies laravel code example
Example 1: laravel create controller
php artisan make:controller MyController
Example 2: Route::resource
Route::resource('photos', PhotoController::class);
php artisan make:controller MyController
Route::resource('photos', PhotoController::class);