Create below rule to check the unique on update in laravel
$rules = array('email' => 'required|unique:users,email,[Enter Id here]');
$validator = Validator::make(Input::all(), $rules);
$rules = array('email' => 'required|unique:users,email,[Enter Id here]');
$validator = Validator::make(Input::all(), $rules);
No comments:
Post a Comment