Level 8
You probably want to filter the HTTP requests entering your application.
So create a route group and assign a middleware that will redirect users based on their role, and inside that group you can protect your routes from a specific role in the same way.
1 like