I am looking for a way to dynamically route my Laravel 5 application. This is what I want:
http://ift.tt/1Y4jiCY
The above url should automatically call the controller 'hello' with the method 'world()'.
Or another example:
http://ift.tt/1r3EWtJ
This URL should rout to the controller pages/profile with the method settings().
Of course, when parameters should be given, I will have to specify the route. But for the more simpler routes I would love to use the example above.
For the people that are familiar with the Kohana Routing style, that is exactly what I am looking for. I have found the following article, it gets me halfway there. Just wondering if I can get the method from the url too somehow.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire