how to use controller in laravel 7 vs 8 code example Example: controller in laravel 8 Rout::get('/test' , [TestController::class , 'index']);