© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
leoblanski

Redirect to login page showing error

I'm trying to create a Middleware to validate User Status (When user is logged in and admins change the status to inactive, I have to redirect user to the login page and show a specific error).

I can show specific errors on login, but just overriding function throwFailureValidationException from Login and when user is already on login page, but when i am inside system and try to redirect with something like bellow, it not works. (Redirect but doesn't show message error).

throw ValidationException::withMessages([
            'data.login' => __('filament-panels::pages/auth/login.messages.failed'),
        ]);
throw ValidationException::withMessages([
            'data.login' => __('filament-panels::pages/auth/login.messages.failed'),
        ]);
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Redirect to filament login page
FilamentFFilament / ❓┊help
3y ago
Create landing page - stop redirect to login
FilamentFFilament / ❓┊help
2y ago
Login does not redirect to the correct page
FilamentFFilament / ❓┊help
3y ago
Error when trying to redirect to Jetstream login page, but happen sometime
FilamentFFilament / ❓┊help
2y ago