Please check https://github.com/MrJuliuss/syntara , this will give you some good ideas.
How about creating a view in your DB. The view can be a select of the common fields of the 3 user type tables. Then in your model use the view as the table rather than any one of the different user tables
This blog post can be useful : http://richardbagshaw.co.uk/blog/laravel-user-types-and-polymorphic-relationships/
I share the idea of PSYAO . You can do a table:
AUTHENTICATIONS
id username password group_id group_type
USER id ADMIN id BUSSINES id
I also found some packages to do what you want or to solve your problem
https://github.com/ollieread/multiauth
Not sure if you ever fixed this issue, but my multiauth package (mentioned above) allows you to use Auth for all of the user types.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community