fix validation on email

This commit is contained in:
Kode 2018-10-15 20:25:21 +01:00
parent d0293c785b
commit e095589172

View file

@ -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'
]);