Route [filament.app.auth.logout] not defined.

In my upgraded app I get the following exception after login: Route [filament.app.auth.logout] not defined. I don't really know why this is missing. I never customized the logout.
29 Replies
Saade
Saade2y ago
did you ran php artisan optimize:clear?
Florian Langer
Florian LangerOP2y ago
yep
Saade
Saade2y ago
thats weird can you share the link to the page of the error you're seeing?
Florian Langer
Florian LangerOP2y ago
it's local
Filament
Filament2y ago
We need more information to help you debug your problem. Please click on the top left 'SHARE' button of the error page you're seeing and share the link with us.
Florian Langer
Florian LangerOP2y ago
Flare
Route [filament.app.auth.logout] not defined. - The error occurred at http://localhost/
Saade
Saade2y ago
hmm, its working for me whats the id of your panel?
Florian Langer
Florian LangerOP2y ago
the upgrade script set it to app
Saade
Saade2y ago
both ->id() and ->path() are 'app'?
Florian Langer
Florian LangerOP2y ago
path is /
Saade
Saade2y ago
change path to app see if that works
Florian Langer
Florian LangerOP2y ago
that works, but how should I configure it to work with / ?
Saade
Saade2y ago
hmm, good question, i've haven't changed that in v3, mine is /app too but thats a requirement of my application, so maybe Dan can help you with this
Florian Langer
Florian LangerOP2y ago
hm... but now the JS doesn't load. It's trying to get it from "http://localhost/js/filament/support/support.js?v=3.0.0.0-beta4" but it goes to 404
Saade
Saade2y ago
leave '' (empty string)
Florian Langer
Florian LangerOP2y ago
you mean path should be empty string?
Saade
Saade2y ago
yep
Florian Langer
Florian LangerOP2y ago
and id?
Saade
Saade2y ago
you can leave app i guess that's what the docs says
Florian Langer
Florian LangerOP2y ago
hm... it brings up Route [filament.app.auth.logout] not defined. again
Saade
Saade2y ago
hmm maybe a bug then. you'll need to wait to see if some maintainer can help you with this sorry 🙂
cpbret
cpbret2y ago
@flanger.dev did you ever find a solution here?
Mikazor
Mikazor2y ago
Same bug when an app path is /. As an option, you can redefine login and logout routes in web.php
Florian Langer
Florian LangerOP2y ago
you need to set ->domain(), then it worked for me.
Andrew Wallo
Andrew Wallo2y ago
What did you put inside domain for this?
Mikazor
Mikazor2y ago
@andrewwallo
return $panel
->path('/')
->domain(config('app.url')) // APP_URL=http://localhost
return $panel
->path('/')
->domain(config('app.url')) // APP_URL=http://localhost
awcodes
awcodes2y ago
I’d recommend using config(‘app.url’) instead of env(‘APP_URL’). Using env() outside of config files can have unpredictable consequences since config gets cached.
Mikazor
Mikazor2y ago
Yeah, that's reasonable. I edited my message so it can be marked as the answer

Did you find this page helpful?