title: Laravel: Validation unique when update and create
body: <p>I have a Request with rules where I validate that one field is unique.</p>
  
  <p>When I use:</p>
  
  <pre><code>'cod_upb' =&gt; 'required|max:10|unique:equipos,cod_upb,'.$this-&gt;id,
  </code></pre>
  
  <p>It works in the create method because it doesn't allow me to repeat the field in the database. But when I try to update it says that the field already exist or is taken.</p>
  
  <p>Then I tried with:</p>
  
  <pre><code>'cod_upb' =&gt; 'required|max:10|unique:equipos,id,'.$this-&gt;id,
  </code></pre>
  
  <p>Which works on the update, but it let me create new items repeating the field.</p>
  
  <p>How can I fix that? </p>