your route implementation is very bad!
Apr 2, 2018
5
Level 1
Confusion with routes
Lets say you having an e-shop and urls goes like this
route::resource('{category}/{product}','Controller')
But at the same time you also having some info pages whe the urls are like this
route::resource('{page},'PageController')
As you can guess in the above routes the one who is first is overriding the second.
How would you do it? What's the best practise here? and how can you go when you want to add more parameters on the game like
route::resource('{para}/something/{para},'Controller')
Thank you!
Please or to participate in this conversation.