laravel route resource change method type code example
Example 1: Route::resource
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']);