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
For a custom FormRequest and Laravel 5.7+ you can get the id of your updated model like this:
public function rules() { return [ 'name' => 'required|min:5|max:255|unique:schools,name,'.\Request::instance()->id ]; }