For those who work with Laravel
, they would know to inform me sources so I can search on how to create URL's
clean and friendly so that I can pass a parameter, for example, category_name
, or product_name
, and the routes
system recognizes and calls the corresponding view
?
Detail: I do not want to have to pass a prefix of type categoria/category_name
, produto/product_name
, because so I did the test and it works fine.
The idea is to get the value of the url, get to the database in the related tables and see which match gives it to decide if it is a category, a subcategory, a store, a product, I believe that the path is not this , even though Laravel
tends to make everything simple, and so it is complex.
Thanks to anyone who can give me guidance on where to go, an article talking about it would already be of great help and a good start for me.