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