Support the ongoing development of Laravel.io →
Authentication Database Eloquent
Last updated 2 years ago.
0

Please check https://github.com/MrJuliuss/syntara , this will give you some good ideas.

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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

https://github.com/Toddish/Verify-L4

https://github.com/Zizaco/entrust

Last updated 2 years ago.
0

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.

https://github.com/ollieread/multiauth

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.