Zizaco / entrust

Role-based Permissions for Laravel 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect user to unauthorized page

rehanaslam328 opened this issue · comments

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.