jeudi 17 avril 2014

Laravel Creating Dynamic Routes to controllers from Mysql database


Vote count:

0




I have the following table: group_pages in mysql database with page name route name :



id name route
--------------------
0 About about
1 Contact contact
2 Blog blog


what I am trying to do is to create dynamic routes in my : routes.php ?


Where if I go to for example: /about it will go to AboutController.php ( which will be created dynamically) is that possible? is it possible to create a dynamic controller file?



asked 24 secs ago






Aucun commentaire:

Enregistrer un commentaire