Route controller

2022-08-08 16:48:33 qaz Laravel

In laravel 8.9 we can define route controller like this


Route::controller(Controller::class, function(){
Route::get('/new-route','controllerMethod');
});

This post is submitted by one of our members. You may submit a new post here.

Related Tricks