I have a laravel User model which has a unique validation rule on username and email. In my Repository, when I update the model, I rev
User
username
email
or what you could do in your Form Request is (for Laravel 5.3+)
public function rules() { return [ 'email' => 'required|email|unique:users,email,'.$this->user, //here user is users/{user} from resource's route url ]; }
i've done it in Laravel 5.6 and it worked.