Route [login] not defined.

Hey gays, I been working with multiple panels and when I do "Filament::auth()->logout()" I get this error: I tried different solutions that I found but anything works for me, can I help me? I tried this solution, but not works --> https://github.com/filamentphp/filament/discussions/5226#discussioncomment-10473083 thanks I'm using php 8.3 and Filament v3
GitHub
How to fix Route [login] not defined. · filamentphp filament · Disc...
Hi All, How to fix Route [login] not defined. I'm using Filament Admin Breeze plugin (https://github.com/jeffgreco13/filament-breezy) My login page setting in filament config file. 'auth...
No description
3 Replies
Dan Mason
Dan Mason3w ago
Are you using the overridden AuthenticateSession middleware added here? https://github.com/filamentphp/filament/pull/15041
GitHub
Fix Route [login] not defined error by ralphjsmit · Pull Request ...
This PR fixes the common Route [login] not defined error. I've had this issue popping up occasionally for years. I dug into it this time and the reason for the error comes from when Laravel...
Dan Mason
Dan Mason3w ago
Alternatively I have fixed it previously in bootstrap/app.php
->withMiddleware(function (Middleware $middleware) {
$middleware->redirectGuestsTo(fn () => url('/'))
})
->withMiddleware(function (Middleware $middleware) {
$middleware->redirectGuestsTo(fn () => url('/'))
})
Emiliano
EmilianoOP3w ago
thank you so much. It works now!

Did you find this page helpful?