Help: How do i use different Model (Admin) instead of using FilamentPHP default Model (User)
6 Replies
Use a custom authentication guard https://filamentphp.com/docs/3.x/panels/users#setting-the-authentication-guard
This is not used for creating new model
What do you mean? Please explain your question further if a custom guard it not what you want.
I'm trying to use another model instead of using User model. This means i want to create a model named Admin model.
You define your Admin model in the new guard, see https://stackoverflow.com/a/40994838 as an example
Stack Overflow
How to use authentication on custom model in Laravel
I'm making new custom model for user in laravel. I'm using the default User laravel model for one type of users that I will have, and new Merchant model for other type of users.
I make select opti...
Thank you so much @Jyrki