Any route in web.php gives 404

I would like to add a simple route in my Filament app like below:
Route::get('/test', function () {
dd("Here");
});
Route::get('/test', function () {
dd("Here");
});
When I access the /test url, Laravel throws an 404 Not Found. What am I doing wrong?
Solution:
I am using multi tenancy, and in that case I needed to set ->tenantRoutePrefix() on my panel. Having a prefix, made it so I could define routes in web.php...
Jump to solution
3 Replies
LeandroFerreira
LeandroFerreira5mo ago
What is the filament path? /admin ?
Toufloux
Toufloux5mo ago
Hi maybe you can try php artisan route:clear, to clear the route cache
Solution
oliverbusk
oliverbusk5mo ago
I am using multi tenancy, and in that case I needed to set ->tenantRoutePrefix() on my panel. Having a prefix, made it so I could define routes in web.php
Want results from more Discord servers?
Add your server
More Posts