dimanche 25 novembre 2018

different types of users login system with laravel auth

i have a role table having 3 roles admin teacher student.And i have added a column in laravel users table role_id.Builded the relationship between them!Now i am using laravel auth system to authenticate these 3 types of users.Now Problem is that if admin logged in he can also access the student and teacher dashboard.Similarly the teacher can access the admin dashboard after authentication.i want if admin logged in he can only access his dashboard and same with teacher and student.If student logged in only access the student dashboard.Similarly teacher.How to implement this any solution ???



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire