'email' => 'required|email|unique:users,email',
//@sujay
'user.email' => 'required|email|unique:users,email,'.$user->id,
//@sujay
'email' => 'email:rfc,dns'
$validator = Validator::make($request->all(), []);
$validator->sometimes('email', 'unique:users,email', function ($input) {
return $input->email !== Auth::user()->email;
});
//@sujay
composer require beyondcode/laravel-confirm-email
Route::name('auth.resend_confirmation')->get('/register/confirm/resend', 'AuthRegisterController@resendConfirmation');
Route::name('auth.confirm')->get('/register/confirm/{confirmation_code}', 'AuthRegisterController@confirm');