title: Laravel Use of undefined constant errors - assumed 'errors'
body: <p>Please bear with me I'm new to Laravel.</p>
  
  <p>if I leave the code below out... my form validation seems fine.</p>
  
  <pre><code>@if(count(errors) &gt; 0)
  &lt;div class="row"&gt;
    &lt;div class="col-md-6"&gt;
      &lt;ul&gt;
        @foreach($errors-&gt;all() as $error)
          &lt;li&gt;{{$error}}&lt;/li&gt;
        @endforeach
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  @endif
  </code></pre>
  
  <p>But as soon as I add the above code it Fails and gives me the error : </p>
  
  <p>Use of undefined constant errors - assumed 'errors'</p>
  
  <p>I have the route under this middleware </p>
  
  <pre><code>Route::group(['middleware' =&gt; ['web']], function(){ 
   Route::post('/signup', [
   'uses' =&gt; 'UserController@postSignUp',
   'as' =&gt; 'signup'
   ]);
  }
  </code></pre>
  
  <p>because I have it under that middleware its supposed to have the error constant. </p>
  
  <p>I cant find anything regarding this problem with the display errors.
  please can someone tell me what I'm doing wrong?</p>