title: Form post if password input is current password in Laravel 5.2
body: <p>I am trying to check if entered password is <strong>currently logged in</strong> users password and give error message if not.</p>
  
  <p>I have profile editing form with name, email etc.</p>
  
  <p>Last input in form is password input.</p>
  
  <p>How can I check if password that is entered is current password?</p>
  
  <p>In EditProfileRequest i tried (custom request file, made with artisan):</p>
  
  <pre><code>  public function rules() {
      return [
          'first_name' =&gt; 'required|max:255',
          'email' =&gt; 'required|email|max:255|unique:users,email,'.Auth::user()-&gt;id,
          'country_code' =&gt; 'digits_between:1,4|numeric',
          'phone' =&gt; 'digits_between:5,12|numeric',
          'password' =&gt; 'required|confirmed',
      ];
  }
  </code></pre>
  
  <p>but it rejected form with correct password.
  Then I tried adding to controller this part:</p>
  
  <pre><code>if (!Hash::check(Input::get('password'), Auth::user()-&gt;password)) {
          return Redirect::back()-&gt;withInputs();
      }
  </code></pre>
  
  <p>this worked but I don't get any errors for user and I don't know how to add custom error messages, since I am using built-in validator.</p>