Skip to content

Commit

Permalink
Unique user name
Browse files Browse the repository at this point in the history
  • Loading branch information
Saodus committed Oct 29, 2024
1 parent 37c490d commit eee25b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function create(): View
public function store(Request $request): RedirectResponse
{
$request->validate([
'name' => ['required', 'string', 'max:255'],
'name' => ['required', 'string', 'max:255', 'Unique:'.User::class],
'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:'.User::class],
'password' => ['required', 'confirmed', Rules\Password::defaults()],
]);
Expand Down

0 comments on commit eee25b8

Please sign in to comment.