How to define model based on role I have a table where I save users. Users can either be a student, faculty, hod or a combination of this, I make use of roles to achieve this.
I provide specific models for students, faculty and hod with their own queries and so on, but I don't have specific tables for these models.
Take a look at this post
Sign in to participate in this thread!