title: how to verify both password and confirm password are equal?
body: <p>I am using laravel 5.2. My page contains fields password and confirm password. I want to check whether the password and confirm password are equal. The below given is my view page part. Also i want to know how to validate password and confirm password?</p>
  
  <pre><code>&lt;div class="col-sm-12"&gt;
      &lt;div class="form-group"&gt;
          &lt;label class="col-md-2 control-label"&gt;Password&lt;/label&gt;
          &lt;div class="col-md-6"&gt; 
              &lt;input type="password" class="form-control"   placeholder="Enter Your Password" name="password" id="password" data-parsley-trigger="change" data-parsley-required="true" data-parsley-equalto="#password" data-parsley-minlength="6" data-parsley-maxlength="14" required&gt;
              {!! $errors-&gt;first('password', '&lt;label class="control-label" for="password"&gt;:message&lt;/label&gt;')!!}
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="col-sm-12"&gt;
      &lt;div class="form-group"&gt;
          &lt;label class="col-md-2 control-label"&gt;Confirm Password&lt;/label&gt;
          &lt;div class="col-md-6"&gt; 
              &lt;input type="password" class="form-control" placeholder="Please Confirm Your Password" name="password_confirmation" id="password_confirmation" data-parsley-trigger="change" data-parsley-required="true" data-parsley-equalto="#password" data-parsley-minlength="6" data-parsley-maxlength="14" required&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>