diff --git a/app/Http/Controllers/RegisterUserController.php b/app/Http/Controllers/RegisterUserController.php index 2458b9b5..babe1eb8 100644 --- a/app/Http/Controllers/RegisterUserController.php +++ b/app/Http/Controllers/RegisterUserController.php @@ -22,6 +22,8 @@ public function store(RegisterUserRequest $request): RedirectResponse $user = new User($request->validated()); $user->password = Hash::make($request->password); $user->save(); + $user->syncRoles("user"); + event(new Registered($user)); Auth::login($user); }