Level 50
Hi @ImeDa
We just had conversation about this in another thread..
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello guys,
In laravel 5.2 I used to do this:
Route::controllers([
'user' => 'UserController',
'admin' => 'AdminController',
'ajax' => 'AjaxController',
'projects' => 'ProjectController',
]);
In laravel 5.4 it throws error: Attribute [controllers] does not exist. I really like the functionality Route::controllers provided so I could have functions like: getProjects, postProjects ...
I wonder if there is something similar in 5.4. Thanks in advance.
Please or to participate in this conversation.