Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shilan's avatar

multi auth

i have roles table(id, role_name(Admin, Doctor, Resident Doctor, Laboratorian, and Secretary)) and other tables admins, doctors, resident_doctors, secretaries, and laboratorians) i want to create a login form with dropdown list, this drop down list retrieve the data from roles table, when the user choosing the Admin role and entering the email and password that matching to the data in admins table he can go to admin/dashboard blade, please give me the steps of creating this login

0 likes
1 reply
Snapey's avatar

use multi-auth when there are multiple ways of logging in - not to differentiate user roles

Let the user login then redirect afterwards based on role

2 likes

Please or to participate in this conversation.