They are all users, but they have different roles. No need for extra model classes unless you have extra tables for each role where they have uncommon data and you need to access specific data for each type of user aka user role.
Nov 23, 2016
2
Level 1
Seperate Roles in different models or use only User?
I'm making a platform that will have "admins", "patients", and "doctors". I'm using a roles-based package but I'm wondering..
Should they all be "User"? or should I extend each one of the into it's own Model that extends Authenticatable?
Thank you!
Please or to participate in this conversation.