title: Why not showing validation error message in laravel 5.6
body: <p>I want to show error message for password and confirm_password match.Below are my code please help me how to show error message if password not match.</p>
  
  <p><strong>PasswordResetController.php</strong></p>
  
  <pre><code>  public function reset(Request $request)
        {
  
          $request-&gt;validate([
              'email' =&gt; 'required|string|email',
              'password' =&gt; 'required|string|min:6|max:12|confirmed',
              //'token' =&gt; 'required|string'
          ]);
          $passwordReset = PasswordReset::where([
             // ['token', $request-&gt;token],
              ['email', $request-&gt;email]
          ])-&gt;first();
          if (!$passwordReset)
              return response()-&gt;json([
                  'message' =&gt; 'This password reset token is invalid.'
              ], 404);
          $user = User::where('email', $passwordReset-&gt;email)-&gt;first();
          if (!$user)
              return [
                  'message' =&gt; 'We can not find a user with that e-mail address.'
              ];
          $user-&gt;password = bcrypt($request-&gt;password);
          \Session::flash('flash_message',' Password reset successfully!.');
          $user-&gt;save();
  
          $user-&gt;notify(new PasswordResetSuccess($passwordReset));
          return view('changePassword', compact('user'));
      }
  </code></pre>
  
  <p>this is my controller function in which defined method of laravel.And changePassword.blade.php is my view file .How to show validation error message in laravel.</p>
  
  <p>changePassword.blade.php</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
          &lt;html lang="en"&gt;
          &lt;head&gt;
  
            &lt;meta charset="utf-8"&gt;
            &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
            &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"&gt;
            &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
            &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
          &lt;/head&gt;
          &lt;body style="background-image:url({{url('files/bk1.jpg')}})"&gt;
  
          &lt;div class="container"&gt;
            &lt;h2 style="color: white;"&gt;Change Password&lt;/h2&gt;
            &lt;form method="post" class="form-horizontal" action="{{ route('reset') }}"&gt;
              @csrf
             @if(Session::has('flash_message'))
              &lt;div class="alert alert-success"&gt;&lt;span class="glyphicon glyphicon-ok"&gt;&lt;/span&gt;&lt;em&gt; {!! session('flash_message') !!}&lt;/em&gt;&lt;/div&gt;
              @endif
              @if(Session::has('message'))
                &lt;p class="alert {{ Session::get('alert-class', 'alert-info') }}"&gt;{{ Session::get('message') }}&lt;/p&gt;
              @endif
  
              &lt;div class="form-group"&gt;
                &lt;label style="color: white" class="control-label col-sm-2" for="email"&gt;Email:&lt;/label&gt;
                &lt;div class="col-sm-4"&gt;
                  &lt;input type="email" class="form-control" id="email" placeholder="Enter email" name="email"&gt;
                &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                &lt;label style="color: white" class="control-label col-sm-2" for="pwd"&gt;Password:&lt;/label&gt;
                &lt;div class="col-sm-4"&gt;          
                  &lt;input type="password" class="form-control" id="pwd" placeholder="Enter password" name="password"&gt;
                &lt;/div&gt;
              &lt;/div&gt;
               &lt;div class="form-group"&gt;
                &lt;label  style="color: white" class="control-label col-sm-2" for="pwd"&gt;Confirm Password:&lt;/label&gt;
                &lt;div class="col-sm-4"&gt;          
                  &lt;input type="password" class="form-control" id="pwd" placeholder="Enter Confirm Password" name="password_confirmation"&gt;
                &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="form-group"&gt;        
                &lt;div class="col-sm-offset-2 col-sm-10"&gt;
                  &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/form&gt;
          &lt;/div&gt;
  
          &lt;/body&gt;
          &lt;/html&gt;
  </code></pre>
  
  <p>I want to show error message if user password and confirm password not matching </p>