I have 3 user roles: admin, customer and employee.
Each role will be redirected to a specific dashboard once logged in, eg: - Admin: website.com/admin - Customer: website.com/customer - Employee: website.com/employee
At this time, all can be accessed by going through those URLs regardless of which user role I'm using.
What is the easiest way to restrict customer from opening admin & employee dashboards? And restrict employee from opening admin & customer dashboards?
Laravel version 5.2.45 PHP version 7.2 I'm using a shared hosting provider. Thank you