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.
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.