title: error to validate form in laravel
body: <p><a href="https://i.stack.imgur.com/RnAOZ.png" rel="nofollow noreferrer">here's my error</a></p>
  
  <p><a href="https://i.stack.imgur.com/oSRNO.png" rel="nofollow noreferrer">my controller</a></p>
  
  <p>this is my code at blade file</p>
  
  <pre><code>@if(count($errors))
              &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>