Fix: New registered candidates visibility (profile creation and tenant scope adjustment)
This commit is contained in:
@@ -41,6 +41,12 @@ class RegisteredUserController extends Controller
|
||||
'name' => $request->name,
|
||||
'email' => $request->email,
|
||||
'password' => Hash::make($request->password),
|
||||
'role' => 'candidate',
|
||||
]);
|
||||
|
||||
// Create the associated candidate record so they appear in the lists
|
||||
$user->candidate()->create([
|
||||
'status' => 'en_attente',
|
||||
]);
|
||||
|
||||
event(new Registered($user));
|
||||
|
||||
Reference in New Issue
Block a user