Tuesday, February 22, 2022

[FIXED] How to enable Route::controller in laravel 5.5, is there are any packages to use it?

Issue

As Laravel has deprecated Route Controller and we should explicitly write get/post/put/patch/delete methods.

Also as LaravelCollective return some removed packages as HTML, FORM Helper Classes, is there are any packages return this feature to Laravel 5.3 and above ?

Because many of us use ready made scripts in new projects, to increase our productivity, so we don't re-invent the wheel.


Solution

I have added to Router.php class, the removed script that was using to handle Route::controller.

I have created a repo on Github for those who like to use Route::controller in Laravel 5.5 and above.

The repo URL is: https://github.com/marwan2/LaravelRouteControllerBackToLife



Answered By - Marwan

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.