title: Laravel update model with unique validation rule for attribute
body: <p>I have a Laravel <code>User</code> model which has a unique validation rule on <code>username</code> and <code>email</code>. In my Repository, when I update the model, I revalidate the fields, so as to not  have a problem with required rule validation:</p>
  <pre><code>public function update($id, $data) {
      $user = $this-&gt;findById($id);
      $user-&gt;fill($data);
      $this-&gt;validate($user-&gt;toArray());
      $user-&gt;save();
  
      return $user;
  }
  </code></pre>
  <p>This fails in testing with:</p>
  <blockquote>
  <p>ValidationException: {&quot;username&quot;:[&quot;The username has already been
  taken.&quot;],&quot;email&quot;:[&quot;The email has already been taken.&quot;]}</p>
  </blockquote>
  <p>Is there a way of fixing this elegantly?</p>