Laravel MessageBag errors array is empty in view but with content if I kill script

后端 未结 5 519
太阳男子
太阳男子 2020-12-21 13:32

I am trying to return errors back to my view, this is part of my controller TestcategoryController

    $rules =array(
        \'name\' => \'required\'
            


        
5条回答
  •  佛祖请我去吃肉
    2020-12-21 14:13

    If you get nothing in your case, than it means you have overridden your $errors object with something else or with empty object - check your code and data you pass to the views. Your code is perfectly valid and works good - I've tested it locally. Maybe, you passed empty $errors object to your subview, but in other views the correct object is used.

提交回复
热议问题