using users from my DB

Hi, I'm trying to implement a dashboard in a DB that's already done,I can't change the structure how do I manage to use the users I already got in my DB instead of using filament users per se. I was thinking on rewriting the $table property on the user model but I don't know if it will work
5 Replies
Dennis Koch
Dennis Koch8mo ago
There is no such thing as „Filament users“. Whatever works with Laravels auth will work with Filament. If it’s just about a different table, changing the table name on the model would be the best solution
Barbaracrlp
BarbaracrlpOP8mo ago
Okay,so I change the name of the table, I also need to change the name os attributes right? For example if my table hasn't got timestamps,or instead of email is "mail"
Dennis Koch
Dennis Koch8mo ago
You need to adjust Laravel's auth guard then. I think you can just overwrite the attributes on the Login page for this.
Barbaracrlp
BarbaracrlpOP8mo ago
Which login page? I haven't made any yet, I'm trying to access the panel with the admin user I already got in my DB
Dennis Koch
Dennis Koch8mo ago
Filament login page. You probably need to create your own one to define the attributes used for logging in. I don’t know the exact steps but I think you can find something via search
Want results from more Discord servers?
Add your server