Multiple login models
Hello, how can I use multiple models to diferent logins?
Like
I tried to build diferent panels and set a Login class in a customer panel, like that:
So, in
Well.. I think in the method I need to pass something to indicate I´d like to get Consumer models instead User model right?
But I really don´t know what I need to do here..
Someone can help me? Thanks
Like
user model and consumermodel?I tried to build diferent panels and set a Login class in a customer panel, like that:
So, in
AppLogin class, I have duplicated all default Login class ( Filament\Pages\Auth\Login.php) Well.. I think in the method I need to pass something to indicate I´d like to get Consumer models instead User model right?
But I really don´t know what I need to do here..
Someone can help me? Thanks
Solution
Maybe you need to set AuthGuard? https://filamentphp.com/docs/3.x/panels/users#setting-the-authentication-guard