laravel 8 controller show example
Example 1: resource controller laravel
Route::resource('photos', PhotoController::class);
Example 2: controller in laravel 8
Rout::get('/test' , [TestController::class , 'index']);
Route::resource('photos', PhotoController::class);
Rout::get('/test' , [TestController::class , 'index']);