Admin Model instead of User model
Hi everyone,
I’ve just migrated my project from Filament v2 to v3 and I’m encountering an issue with authentication. Previously, I was using the FilamentUser trait on my custom Admin model, and everything worked fine. However, after the upgrade, it seems Filament is now defaulting to the User model for login.
In my application, I have separate tables for users and admins, and I need Filament to authenticate using the Admin model instead of User.
What’s the recommended approach to achieve this in Filament v3?
Thanks in advance!
I’ve just migrated my project from Filament v2 to v3 and I’m encountering an issue with authentication. Previously, I was using the FilamentUser trait on my custom Admin model, and everything worked fine. However, after the upgrade, it seems Filament is now defaulting to the User model for login.
In my application, I have separate tables for users and admins, and I need Filament to authenticate using the Admin model instead of User.
What’s the recommended approach to achieve this in Filament v3?
Thanks in advance!