I'm trying to build the new version of our site with the Laravel 5 framework.
The problem is, we have now the following site structure (and this may not be changed):
- http://ift.tt/1LEkohE] <- dynamic
- http://ift.tt/1PWJqM6] <- dynamic
- http://ift.tt/1LEkmq0
- http://ift.tt/1PWJonr
- ....
In our database, we have a list of different product names and different categories.
I want to route the [productname] to a productController and the [categoryname] to the categoryController. But therefor, i need query our database with each request to see if the URL parameter is either a product or a category.
Any ideas to get me on right direction?
Thanks in advance!
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1SbG3jv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire