Laravel 5: How to validate querystring?

you can put this in your blade.

  @if($errors->any())
      <ul class="alert alert-info">
        @foreach($errors->all() as $error)
            <li>{{ $error }} </li>
  
        @endforeach
      </ul>
   @endif
1 Like