yes I would keep only one users table and use a polymorphic relationship for the user types.
Dec 6, 2016
5
Level 1
Using 3 Authenticatable entities, Seperate Auth or with User?
Hi,
Looking for some good practice advice here, I have admins, employees, and coaches. They will all have to login, but have some different data in the db, and different roles and permissions.
Is it good practice to have a Users table which holds all users, and then couple each user to it's type with a relation..
Auth::user()->admin //would give me access to his admin specific fields.
Or are there better options? This seems like a good one because only one table handles Authentication.
Looking forward to your responses!
Level 56
1 like
Please or to participate in this conversation.