Looks like the QuickRoutes alias is missing there. Even the documentation does not say anything about adding a service provider and the alias.
Alternatively, if you are looking to just reduce the clutter in the routes file, a lot can be done with route prefixes.
Thanks for the tip about prefixing. I must confess I don't really understand what it does but reading a bit should clear that up.
What I'm trying to do is get rid of having to manually specify every route I want supported for my application. That amount of tedious code you have to write seems pretty crazy. Maybe I got spoiled in CodeIgnitor where routes were auto managed based on convention.
What I'm trying to do is get rid of having to manually specify every route I want supported for my application. That amount of tedious code you have to write seems pretty crazy. Maybe I got spoiled in CodeIgnitor where routes were auto managed based on convention.
You could write a catchall controller for all routes and then use the text helpers to load routes based on the URL segments. It should be reasonably easy to do.
I prefer the Laravel method though.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community