When I used Laravel 5.8 I could get information about errors like this :
@if(count($errors > 0)) <ul class="error-list" > @foreach($errors->all() as $error) <li class="error-list-element">{{$error}}</li> @endforeach </ul> @endif It worked completly fine. Since Laravel 6.0 was released the code above results in error :
Object of class Illuminate\Support\ViewErrorBag could not be converted to int
So how can I get information about errors in Laravel 6.0?
@if(count($errors > 0))to@if(count($errors) > 0)