I have implemented prefix routing for my admin panel on my local machine which works fine.
I am using virtual hosting on my local which is lara6.com. I have my admin panel which I access using lara6.com/admin link. For this to implement I am using prefix routing. below is my code.
Now if I visit lara6.com/admin/site and lara6.com/admin/user both works fine. But when I push my changes on actual dev server which looks like this dev.myapp.com/admin with this I am not able to access the dev.myapp.com/admin/user
Hi @bobbybouwmann yes /admin/site works. And also /admin/site/anothersegment works. site's routes are placed on top and then I have other sections such as user section. all those after site does not work it says Sorry, the page you are looking for could not be found.
I am just using the $this->middleware('auth'); middleware in all my controller's constructor method including siteController
After executing php artisan route:list on the server it was showing a syntax error in one of my controller. Now I have sorted that error. And now if I execute above artisan command it list me all the Routes including other admin routes. below I have listed some.
@bobbybouwmann I can see all my routes when I run php artisan route:list
also I dont have any error. What else could be the reason for routes not working.