Question: I have been declaring all the routes for my application inside web.php , but it is now getting quite large. I find that I am losing a lot of time shifting between web.php and each controller and this is hurting productivity.

I feel like it would be better to define routes inside of the controller, perhaps ideally delegating some URL to a controller and then allowing the controller to handle the "sub routes" since this would allow me to use inheritance when I have two similar controllers with similar routes.

Answer: 
It is not possible given how laravel works. Every request is passed onto router to find its designated spot viz. the controller with the method. If it fails to find the route within the router, it just throws the exception. So the request never reaches any controller if the route is not found. It was possible in earlier versions on Symphony where you would configure the route in the comment of a particular controller method.

Sadly with laravel it works how it works. 

But for me, I just like to have the routes in a separate file.
[![enter image description here](https://i.stack.imgur.com/6MHvU.png)](https://i.stack.imgur.com/6MHvU.png)

Alternate solution, easier way to sort all the routes.