Route controller

2022-12-02 09:34:06 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