title: Laravel custom validation for confirm password
body: <p>I have to do the back end validation for confirm password. I write my validator as</p>
  
  <pre><code>$validator = Validator::make($request-&gt;all(), [
      'first_name' =&gt; 'required',
      'last_name' =&gt; 'required',
      'email' =&gt; 'email|required',
      'password' =&gt; 'required',
      'confirm_password' =&gt; 'required',
      'tnc' =&gt; 'required'
  ]);
  </code></pre>
  
  <p>now the confirm password must be same as the password field. Can we do it with laravel validator?</p>