Laravel 5.2 validation errors not appearing

后端 未结 4 1189
名媛妹妹
名媛妹妹 2021-01-21 13:13

I am trying to get validation errors to show up in Laravel.

I have a UserController set up like so:



        
4条回答
  •  故里飘歌
    2021-01-21 13:21

    @if(count(($errors->all()) > 0))
    @foreach($errors->all() as $error)
        
    {{$error}}
    @endforeach @endif

提交回复
热议问题