Currently there's only one table that Laravel uses, the users table and the User model. I want to have Teacher model and Student as well with corresponding tables (teachers and students) so that I can do 1 to many relationships like $teacher->students, or $students->teacher. I want to accomplish multi-auth and multi model users in Laravel. Thanks.
cengkuru michael
Full Stack Web Developer
Ideally, all actors in your app are users hence a single users table. Now you can have a Groups table since a user can belong to Many groups. And also have a permissions tables since a group can have many permissions. In the end you'll have relationships like this.
Relationships
Tables
Hope this makes sense.