FilamentF
Filament2y ago
MZX

How do I use a different model for the auth?

I have a Patient model which I would like to use as the default user model, how would I change that?
Solution
If anyone comes across this, you have to create the guard in config/auth.php
And then you have to make sure the model you're trying to use for auth has the same properties as that of user. Make sure the password is using bcrypt, and its a protected cast.
Was this page helpful?