title: Can reset password in laravel 5.1
body: <p>I am using the default laravel 5.1 reset password functionality, its sending me email successfully the only problem I am having is that when I try to visit the link and reset my password it gives me validation error:</p>
  
  <p>"Passwords must be at least six characters and match the confirmation."</p>
  
  <p>This is the default laravel controller:</p>
  
  <pre><code>&lt;?php
  
  namespace Illuminate\Foundation\Auth;
  
  use Illuminate\Http\Request;
  use Illuminate\Mail\Message;
  use Illuminate\Support\Facades\Auth;
  use Illuminate\Support\Facades\Password;
  use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
  
  trait ResetsPasswords
  {
      /**
       * Display the form to request a password reset link.
       *
       * @return \Illuminate\Http\Response
       */
  
      public function getEmail()
      {
      return view('auth.password');
  }
  
  /**
   * Send a reset link to the given user.
   *
   * @param  \Illuminate\Http\Request  $request
   * @return \Illuminate\Http\Response
   */
  public function postEmail(Request $request)
  {
      $this-&gt;validate($request, ['email' =&gt; 'required|email']);
  
      $response = Password::sendResetLink($request-&gt;only('email'), function (Message $message) {
          $message-&gt;subject($this-&gt;getEmailSubject());
      });
  
      switch ($response) {
          case Password::RESET_LINK_SENT:
              return redirect()-&gt;back()-&gt;with('status', trans($response));
  
          case Password::INVALID_USER:
              return redirect()-&gt;back()-&gt;withErrors(['email' =&gt; trans($response)]);
      }
  }
  
  /**
   * Get the e-mail subject line to be used for the reset link email.
   *
   * @return string
   */
  protected function getEmailSubject()
  {
      return isset($this-&gt;subject) ? $this-&gt;subject : 'Your Password Reset Link';
  }
  
  /**
   * Display the password reset view for the given token.
   *
   * @param  string  $token
   * @return \Illuminate\Http\Response
   */
  public function getReset($token = null)
  {
      if (is_null($token)) {
          throw new NotFoundHttpException;
      }
  
      return view('auth.reset')-&gt;with('token', $token);
  }
  
  /**
   * Reset the given user's password.
   *
   * @param  \Illuminate\Http\Request  $request
   * @return \Illuminate\Http\Response
   */
  public function postReset(Request $request)
  {
      $this-&gt;validate($request, [
          'token' =&gt; 'required',
          'email' =&gt; 'required|email',
          'password' =&gt; 'required|confirmed|min:6',
      ]);
  
      $credentials = $request-&gt;only(
          'email', 'password', 'password_confirmation', 'token'
      );
  
      $response = Password::reset($credentials, function ($user, $password) {
          $this-&gt;resetPassword($user, $password);
      });
  
      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)]);
      }
  }
  
  /**
   * Reset the given user's password.
   *
   * @param  \Illuminate\Contracts\Auth\CanResetPassword  $user
   * @param  string  $password
   * @return void
   */
  protected function resetPassword($user, $password)
  {
      $user-&gt;password = bcrypt($password);
  
      $user-&gt;save();
  
      Auth::login($user);
  }
  
  /**
   * Get the post register / login redirect path.
   *
   * @return string
   */
  public function redirectPath()
  {
      if (property_exists($this, 'redirectPath')) {
          return $this-&gt;redirectPath;
      }
  
      return property_exists($this, 'redirectTo') ? $this-&gt;redirectTo : '/home';
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And this is the front end of the reset password form:</p>
  
  <pre><code>&lt;!-- resources/views/auth/reset.blade.php --&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;!-- ================================================= --&gt;
      &lt;!-- PLACE YOUR PAGE TITLE BELOW --&gt;
      &lt;!-- ================================================= --&gt;
      &lt;title&gt;Intl Counselling&lt;/title&gt;
  
      &lt;!-- ================================================= --&gt;
      &lt;!-- LINK TO BOOTSTRAP AND CUSTOM CSS --&gt;
      &lt;!-- ================================================= --&gt;
      &lt;link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"&gt;
      &lt;link rel="stylesheet" href="{{ asset('libs/owl.carousel.css') }}"&gt;
      &lt;link rel="stylesheet" href="{{ asset('libs/owl.theme.css') }}"&gt;
      &lt;link rel="stylesheet" href="{{ asset('libs/owl.transitions.css') }}"&gt;
      &lt;link rel="stylesheet" href="{{ asset('styles/styles.css') }}"&gt;
      &lt;link rel="stylesheet" href="{{ asset('styles/faq.css') }}"&gt;
      &lt;link rel="stylesheet" type="text/css" href="{{asset('css/style.css')}}"&gt;
      &lt;script src="{{asset('js/prefixfree.min.js')}}"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form method="POST" action="/password/reset"&gt;
      {!! csrf_field() !!}
      &lt;input type="hidden" name="token" value="{{ $token }}"&gt;
         &lt;div class="body"&gt;&lt;/div&gt;
      &lt;div class="grad"&gt;&lt;/div&gt;
      &lt;div class="header" style="margin-left: -50px;"&gt;
          &lt;div&gt;Intl&lt;span&gt;Counselling&lt;/span&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;br&gt;
      &lt;div class="login"&gt;
              &lt;input type="email" name="email" placeholder="email" value="{{ old('email') }}"&gt;
               &lt;input type="password" placeholder="password" name="password" id="password"&gt;
              &lt;input type="password" placeholder="password" name="password_confirmation'"&gt;
              &lt;input type="submit" value="Reset Password"&gt;
  
               @if (count($errors) &gt; 0)
                         &lt;ul&gt;
                             @foreach ($errors-&gt;all() as $error)
                                 &lt;li&gt;{{ $error }}&lt;/li&gt;
                             @endforeach
                         &lt;/ul&gt;
                     @endif
      &lt;/div&gt;
  
     {{----}}
         {{--{!! csrf_field() !!}--}}
         {{--&lt;input type="hidden" name="token" value="{{ $token }}"&gt;--}}
     {{----}}
         {{--@if (count($errors) &gt; 0)--}}
             {{--&lt;ul&gt;--}}
                 {{--@foreach ($errors-&gt;all() as $error)--}}
                     {{--&lt;li&gt;{{ $error }}&lt;/li&gt;--}}
                 {{--@endforeach--}}
             {{--&lt;/ul&gt;--}}
         {{--@endif--}}
     {{----}}
         {{--&lt;div&gt;--}}
             {{--Email--}}
             {{--&lt;input type="email" name="email" value="{{ old('email') }}"&gt;--}}
         {{--&lt;/div&gt;--}}
     {{----}}
         {{--&lt;div&gt;--}}
             {{--Password--}}
             {{--&lt;input type="password" name="password"&gt;--}}
         {{--&lt;/div&gt;--}}
     {{----}}
         {{--&lt;div&gt;--}}
             {{--Confirm Password--}}
             {{--&lt;input type="password" name="password_confirmation"&gt;--}}
         {{--&lt;/div&gt;--}}
     {{----}}
         {{--&lt;div&gt;--}}
             {{--&lt;button type="submit"&gt;--}}
                 {{--Reset Password--}}
             {{--&lt;/button&gt;--}}
         {{--&lt;/div&gt;--}}
     {{--&lt;/form&gt;--}}
  &lt;/form&gt;
  
  
  
  &lt;!-- ================================================= --&gt;
  &lt;!-- LINK TO BOOTSTRAP JQUERY AND CUSTOM JAVASCRIPT FILE --&gt;
  &lt;!-- ================================================= --&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="{{ asset('libs/owl.carousel.min.js') }}"&gt;&lt;/script&gt;
  @yield('additionalFooter')
  &lt;script type="text/javascript" src="{{ asset('scripts/scripts.js') }}"&gt;&lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  {{--=====================================================================================--}}
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/AvASY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AvASY.jpg" alt="enter image description here"></a></p>
  
  <p>I have followed everything from the laravel documentation but I cant seem to figure this out I may be a very basic mistake I am just starting with laravel</p>