Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Redirect user to unauthorized page #965

Open rehanaslam328 opened 4 years ago

rehanaslam328 commented 4 years ago

Hello guys, I have applied the role middleware on some routes in my project. Role for those particular routes is admin. I want to redirect other users to the unauthorized page. How can I add a custom error page and redirect the user to that page? I want to handle this exception.