© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
3 replies
epertinez

filament v4 $panel->login(Login::class) not working

Hi,
My app substitutes an older one where users had usernames instead of emails.
So in filament v2 or v3 I overwrite the Login class to avoid the form checking the email.

In fact I created a 'usuari' field instead of email field. This way I could check if the user already existed in the laravel User table and if not, import it from my legacy system.

The thing is that I substituted the Login class by calling $panel->login(Login::class) in AdminPanelProvider

use App\Filament\Pages\Auth\Login;
class AdminPanelProvider extends PanelProvider
{
 public function panel(Panel $panel): Panel
    {
        return $panel->login(Login::class)
use App\Filament\Pages\Auth\Login;
class AdminPanelProvider extends PanelProvider
{
 public function panel(Panel $panel): Panel
    {
        return $panel->login(Login::class)

For some reason in filament v4 Login::class is never called and users cannot login without a proper formated email.

Does anybody know how can I reactivate the Login::class in filament v4?
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

Filament v4 Group class
FilamentFFilament / ❓┊help
3mo ago
Panel domains not working on v4
FilamentFFilament / ❓┊help
8mo ago
Filament v4 components outside panel not loading styles (Tailwind v4 / Sail)
FilamentFFilament / ❓┊help
5mo ago
RepeatableEntry Actions Not Working in Filament v4 ❌
FilamentFFilament / ❓┊help
5mo ago