title: Laravel validation: exists two column same row
body: <p>Is there a way of referencing another field when specifying the exists validation rule in Laravel?</p>
  
  <p>My request :</p>
  
  <pre><code>public function rules()
      {
  
          return [
              'numero_de_somme' =&gt; 'unique:personnels,numero_de_somme|exists:fonctionnaire,num_somme',
              'cin' =&gt; 'unique:personnels,cin|exists:fonctionnaire,cin',
  
          ];
      }
  </code></pre>
  
  <p>in my validation rules I want to be able to make sure that:</p>
  
  <ul>
  <li><code>num_somme</code> exists within the <code>fonctionnaire</code> table</li>
  <li><code>cin</code> exists within the fonctionnaire table and <code>cin</code> input must be
  on the same row of the <code>num_somme</code></li>
  </ul>
  
  <p>num_somme : 12345    cin :   s89745 </p>
  
  <p>num_somme : 78945    cin :   U10125 </p>
  
  <p>Explaining : for example </p>
  
  <ul>
  <li>1st scenario if the input <code>num_somme</code> = 12345 and <code>cin</code> = U10125 the validation must fail</li>
  <li>2nd scenario if the input <code>num_somme</code> = 12345 and <code>cin</code> = s89745 the validation must success</li>
  </ul>
  
  <p>I hope this makes sense.</p>
  
  <p>Thank you</p>