Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PetroGromovo's avatar

How in Filament to make on logout to redirect into “/app/login”?

When I make logout on site it is redirected into “/app/login”, as in file app/Providers/Filament/AppPanelProvider.php I have options :

class AppPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->plugins([
            ])
            ->id('app')
            ->path('app')
            ->login()
            ->profile()

But in some cases “/login” is opened(Say after I refresh full database with migration command and lost current session).

In app/Http/Middleware/Authenticate.php I changed a line :

return route('app/login');

But the same result...

If there is a way always to reopen “/app/login” url ?

"laravel/framework": "^10.31.0",
"filament/filament": "^3.0-stable",

Thanks in advance!

0 likes
2 replies
slacky's avatar

i have almost the same problem, did you solve it ?

Please or to participate in this conversation.