I had the same problem as you, and none of the alternatives (explicit announcement or publication) was good enough. There were also some alternatives that required changing too much code.
That's why I wrote a class called AdvancedRoute, which serves as a replacement replacement.
It can be used by simply replacing the Route :: controller with AdvancedRoute :: as follows:
AdvancedRoute::controller('users','UserController');
Full details on how to install and use the search in the GitHub repository at:
https://github.com/lesichkovm/laravel-advanced-route
I hope you find this helpful.
source share