Laravel login as another user
I am currently developing a laravel app where there are 3 user_roles Superadmin Admin Normal So each role can access the roles below him. e.g Superadmins can access admins and normal users account. How do I allow a authenticated superadmin user to log in as an admin or normal user with a click of a button? USER_ROLES TABLE id name 1 superadmin 2 admin 3 normal ---------------------------- USERS TABLE id first_name last_name user_role_id password 1 john doe 1 ******* 2 jane doe 2 ******* 3 cassie snow 3 ******* 4 sansa stark 3 ******* Reading the comments I think you want to do the following: