title: Laravel form validation, why I don't have the $errors variable available on my view?
body: <p>Taken from lrvl 5.1 documentation, I read:
  using these lines in the controller:</p>
  
  <pre><code>$this-&gt;validate($request, [
      'title' =&gt; 'required|unique:posts|max:255',
      'author.name' =&gt; 'required',
      'author.description' =&gt; 'required',
  ]);
  </code></pre>
  
  <p>If validation doesn't pass controller stops execution and redirect back to previous location.</p>
  
  <p>This is happening correctly.</p>
  
  <p>Then doc says:
  "$errors variable will always be available in all of your views on every request"</p>
  
  <p>And then suggests the following blade code:</p>
  
  <pre><code>@if (count($errors) &gt; 0)
  &lt;div class="alert alert-danger"&gt;
      &lt;ul&gt;
          @foreach ($errors-&gt;all() as $error)
              &lt;li&gt;{{ $error }}&lt;/li&gt;
          @endforeach
      &lt;/ul&gt;
  &lt;/div&gt;
  @endif
  </code></pre>
  
  <p>But actually I'll get a ErrorException undefined variable errors....</p>
  
  <p>What am I missing?</p>
  
  <p>Thanks</p>