I've made laravel e-commerce where i have like 100+ different kind of routes and there is no function in my web.php file all functions provided in controllers.
The issue I'm facing is every once a while one of my routes stop functioning and redirect me to whoops, looks like something went wrong page.
To fix that i have to move that route in top of my web.php file and then it works.
Result of that will be other route will brake this time!
It is impossible for me to change routes positions every second!!
How can i fix this issue? Any experience?
Update
As i checked my log file, for my back-end (admin panel) that error caused because I've made my title unique and couldn't make double of same title fixed.
In other hand for my front-end i do not have any sort of same url is just getting unique urls like domain.co/products and i only have one route like that but it gave whoops error and i must move it to the top of my route lists, why is that?
web.phpfile. - Parth Pandya