fix validation on email
This commit is contained in:
parent
d0293c785b
commit
e095589172
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ class UserController extends Controller
|
|||
{
|
||||
$validatedData = $request->validate([
|
||||
'name' => 'required|max:255',
|
||||
'email' => 'required|email',
|
||||
'email' => 'required|email|unique:users',
|
||||
'password' => 'nullable|confirmed',
|
||||
'password_confirmation' => 'nullable'
|
||||
|
||||
|
@ -120,7 +120,7 @@ class UserController extends Controller
|
|||
{
|
||||
$validatedData = $request->validate([
|
||||
'name' => 'required|max:255',
|
||||
'email' => 'required|email',
|
||||
'email' => 'required|email|unique:users',
|
||||
'password' => 'nullable|confirmed',
|
||||
'password_confirmation' => 'nullable'
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue