- EmployeeController::create(): pass company roles + defaultRole (employee) to Inertia - EmployeeController::store(): assign role from role_id request field (fallback to 'employee') - EmployeeController::edit(): pass company roles + currentRoleId to Inertia - EmployeeController::update(): syncRoles() with selected role_id - create.tsx: Role <Select> dropdown pre-selected to default employee role - edit.tsx: Role <Select> dropdown pre-selected to employee's current role
65 KiB
65 KiB