Check some of these: https://laracasts.com/discuss?q=student+and+teacher
Aug 20, 2018
6
Level 23
different user types? how to 'code'?
so if i have diff type of users (client, students, teacher) with some same fields some not - how should i approach this? how would login work? should i do user model and then just have a type? or do i actually have three entities and then do a one-one with user?
Level 80
@shez1983 Have a single User model, then have a user_type or similar column. Use authorization to determine what a user can see in your application based on their user type.
Please or to participate in this conversation.