title: laravel 5.1 Password::reset returns passwords.password
body: <p>I have this function in controller and I can't reset password because I want to change character length to 5 digits.</p>
  
  <pre><code>public function postReset(Request $request)
  {
    $this-&gt;validate($request, [
      'token' =&gt; 'required',
      'password' =&gt; 'required|confirmed|digits:5',
    ]);
  
    $credentials = $request-&gt;only(
      'email', 'password', 'password_confirmation', 'token'
    );
  
    $response = Password::reset($credentials, function ($user, $password) {
      $this-&gt;resetPassword($user, $password);
    });
  
    dd($response);
    switch ($response) {
      case Password::PASSWORD_RESET:
        return redirect($this-&gt;redirectPath());
  
      default:
        return redirect()-&gt;back()
          -&gt;withInput($request-&gt;only('email'))
          -&gt;withErrors(['email' =&gt; trans($response)]);
    }
  }
  
  protected function resetPassword($user, $password)
  {
    $user-&gt;password = bcrypt($password);
    $user-&gt;save();
    Auth::login($user);
  }
  </code></pre>
  
  <p>but it always says:</p>
  
  <blockquote>
    <p>Whoops! There were some problems with your input.</p>
  </blockquote>
  
  <p>Passwords must be at least six characters and match the confirmation.</p>
  
  <p>And when I added:</p>
  
  <pre><code>dd($response);
  </code></pre>
  
  <p>it prints:</p>
  
  <blockquote>
    <p>passwords.password</p>
  </blockquote>
  
  <p>Any idea how to solve this?</p>