notification after agent registration bug ok
This commit is contained in:
parent
487c38d797
commit
ddab113e83
@ -56,7 +56,8 @@ public function __invoke(Request $request)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$password = $user->setForcedPassword(false);
|
$password = $user->setForcedPassword(false);
|
||||||
$admin->notify(instance: new UserRegistered($user->email, password: $password));
|
$adminUser = User::find($admin->user_id);
|
||||||
|
$adminUser->notify(instance: new UserRegistered($user->email, password: $password));
|
||||||
return redirect()->route('company.agents.table')->with('success', 'thank you');
|
return redirect()->route('company.agents.table')->with('success', 'thank you');
|
||||||
}
|
}
|
||||||
return to_route('company.agents.table');
|
return to_route('company.agents.table');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user