Devtools 404 error #1194
-
Hi guys I am using Multi Tenancy for Laravel with Backpack and I have installed DevTools. When I try to open the devtools url. "/admin/devtools/model" I get the backpack 404 error page. Multi Tenancy for Laravel has two routes files one for the central site/database and one for the tenant site/database. I have copied the devtool routes from vendor\backpack\devtools\routes\devtools.php in to both of these routes file and still no luck. Can any one help? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I seem found a hack but i now need to make a it work. if the devtools.php routes file. "vendor\backpack\devtools\routes\devtools.php"
if i remove the middleware it works. Not a great fix. Anyone else have a better option?
|
Beta Was this translation helpful? Give feedback.
-
I also get a 404 error with \vendor\livewire\livewire\src\Mechanisms\HandleRequests\HandleRequests.php
If I remove the ->middleware('web') no 404 error. |
Beta Was this translation helpful? Give feedback.
-
Hello @JackVanson To be honest, I never try to use Devtools on Multi Tenancy project, can you share exactly which package are you using. In other hand, I think this kind of package are very specific about how routes need to be handled, so I think not all the package will be fully compatible without customize. After you copy routes, did you try with:
Let me know more information to check if we can help you. Cheers. |
Beta Was this translation helpful? Give feedback.
-
I'm glad you find the solution, and thanks for sharing with our community. I will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
I've worked it out. Keeping a note on here just in case someone else has the same issue. I created my own DevToolsRouteServiceProvider, making sure i use php artisan to create it so it was registered in composer.json then I just override the routes in the boot. like so.