ErrorBag is always empty in Laravel 5.2

后端 未结 3 1947
天涯浪人
天涯浪人 2020-11-30 15:38

I was creating a new Laravel project and when debugging the errors of a form request, I noticed that my ErrorBag was always empty. Even when in the controller $validat

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 16:29

    In my case, I moved \Illuminate\Session\Middleware\StartSession::class from my web group to the $middleware array.

提交回复
热议问题