title: How to send error validation message from controller to the view in Laravel 5.2
body: <p>Code in my <strong>PagesController.php</strong></p>
  
  <pre><code>public function postIndex(Request $request){
  
      $this-&gt;validate($request, [
              'name' =&gt; 'required',
              'email' =&gt; 'required|email',
              'phone' =&gt; 'min:3',
              'message' =&gt; 'min:10',
      ]);
  
      $data = array(
              'name' =&gt; $request-&gt;name,
              'email' =&gt; $request-&gt;email,
              'phone' =&gt; $request-&gt;phone,
              'bodyMessage' =&gt; $request-&gt;message,
              'subject' =&gt; 'Some subject',
      );
  
      Mail::send('emails.contact', $data, function($message) use ($data){
          $message-&gt;from($data['email'], "Hello");
          $message-&gt;to('some_user@gmail.com');
          $message-&gt;subject($data['subject']);
      });
  
      Session::flash('success', 'Email was sent');
  
      return redirect('/');
  }
  </code></pre>
  
  <p>In the <code>$request</code> are data from form inputs. If some errors are in validate view is redirect to '/'.</p>
  
  <p>My question is how to handle error message in view ?</p>