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
Saade17mo ago
did you ran php artisan optimize:clear?
Florian Langer
Florian LangerOP17mo ago
yep
Saade
Saade17mo ago
thats weird can you share the link to the page of the error you're seeing?
Florian Langer
Florian LangerOP17mo ago
it's local
Filament
Filament17mo 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 LangerOP17mo ago
Flare
Route [filament.app.auth.logout] not defined. - The error occurred at http://localhost/
Saade
Saade17mo ago
hmm, its working for me whats the id of your panel?
Florian Langer
Florian LangerOP17mo ago
the upgrade script set it to app
Saade
Saade17mo ago
both ->id() and ->path() are 'app'?
Florian Langer
Florian LangerOP17mo ago
path is /
Saade
Saade17mo ago
change path to app see if that works
Florian Langer
Florian LangerOP17mo ago
that works, but how should I configure it to work with / ?
Saade
Saade17mo 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 LangerOP17mo 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
Saade17mo ago
leave '' (empty string)
Florian Langer
Florian LangerOP17mo ago
you mean path should be empty string?
Saade
Saade17mo ago
yep
Florian Langer
Florian LangerOP17mo ago
and id?
Saade
Saade17mo ago
you can leave app i guess that's what the docs says
Florian Langer
Florian LangerOP17mo ago
hm... it brings up Route [filament.app.auth.logout] not defined. again
Saade
Saade17mo ago
hmm maybe a bug then. you'll need to wait to see if some maintainer can help you with this sorry 🙂
cpbret
cpbret16mo ago
@flanger.dev did you ever find a solution here?
Mikazor
Mikazor16mo ago
Same bug when an app path is /. As an option, you can redefine login and logout routes in web.php
Florian Langer
Florian LangerOP16mo ago
you need to set ->domain(), then it worked for me.
Andrew Wallo
Andrew Wallo16mo ago
What did you put inside domain for this?
Mikazor
Mikazor16mo 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
awcodes16mo 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
Mikazor16mo ago
Yeah, that's reasonable. I edited my message so it can be marked as the answer
Want results from more Discord servers?
Add your server