Level 122
redirect when they try to access something that they need to be authenticated for?
How do you know what role they have until they login? Do you see the problem?
1 like
Summer Sale! All accounts are 50% off this week.
I have 2 login routes in my laravel application. I'm trying to redirect the users on session timeout based on their roles (admin, user). if the role is admin redirect to admin login route, else redirect to user login route. how do I go about this?
currently, it's redirecting to the default laravel login for both roles.
redirect when they try to access something that they need to be authenticated for?
How do you know what role they have until they login? Do you see the problem?
Please or to participate in this conversation.