why laravel 8 change the way of calling a controller code example
Example 1: resource controller laravel
Route::resource('photos', PhotoController::class);
Example 2: controller in laravel 8
Rout::get('/test' , [TestController::class , 'index']);