Hi everyone, i have to build project in laravel and i want to create 3 tables for multi type users ['users','managers','admins'] , i built everything well but i want the same ui form to login and register all type of users how can i do that ???
@mutaz I don’t understand why you don’t think “multiple types” of users can use the system if there was a single users table, and your users had roles? You would just check roles instead of horrible, multiple guards logic.
Route::middleware('auth')->group(function () {
// Front-end routes that all authenticated users can access...
});
Route::middleware('auth', 'role:moderator')->group(function () {
// Moderators routes that only moderators can access...
});
Route::middleware('auth', 'role:admin')->group(function () {
// Admin routes that only administrators can access...
});