Hello,
I used on my project laravel 5.6 a multiple authentication guards as follows (Super Admin guard, Admin guard, Agency User guard, and simple user guard) For that I had created 4 (Guard, controller, model, dashboard) for each one.
My a problem, I did not know how to manage authentication and right in controllers with middleware auth of Laravel 5.6
For your information :
1- Super admin has all privileges to (edit, create, delete, validate, publish, import and export) each action in controller of (Admin, Agency User, and simple user)
2- Admin has all privileges to (edit, create, delete, validate, publish, import and export) each action in controller of (Agency User, and simple user)
3- Agency User has all privileges to (edit, create, delete, validate, publish, import and export) each action in controller of (simple user)
Thank you in advance.