Skip to content

Commit 3fb90b7

Browse files
nishant22029belwalshubham
authored andcommitted
assign user role upon registration
1 parent 4a997d6 commit 3fb90b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Auth/RegisteredUserController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function store(Request $request): Response
3131
'email' => $request->email,
3232
'password' => Hash::make($request->string('password')),
3333
]);
34-
34+
$user->assignRole('user');
3535
event(new Registered($user));
3636

3737
Auth::login($user);

0 commit comments

Comments
 (0)