How to customize Models to Admin
keatwei opened this issue · 3 comments
keatwei commented
I have 2 logins (User and Admin)
How do I customize the package to use Admin model?
mateusjunges commented
@keatwei The documentation about replacing and extending this package models can be found here. I don't know if you are adding this package to a fresh laravel installation or an existing one, but if it is a fresh installation, isn't it better to have to groups, users
ans admins
, instead of having a login system for each one?
BTW, you can find the laravel docs about guards here. It allows you to login users in different guards
, like admin
and user
.
mateusjunges commented
@keatwei any updates on this?
mateusjunges commented
I'm closing this due to lack of feedback. Feel free to reopen the issue if needed.