i have installed laravel default authentication system (using php artisan ui react --auth) which is best for me but i have created different table for user role and make relationship between user and role table and create new table called role_user but i am unable to redirect a different page based on user role in roles table. So, my question is how to redirect pages for different user based on role? I couldn't change the default /home page, in my condition all user role redirected to same /home page.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
the easiest way to do this to use the authenticated event which is fired after the authentication take place.
in you LoginController add
Some comments may only be visible to logged-in visitors. Sign in to view all comments.