resource routing in laravel 8 code 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']);