Returning validation error message as JSON

前端 未结 0 995
小鲜肉
小鲜肉 2021-01-02 07:49

I want to return a failed validation attempt message in JSON from laravel\'s validator. But upon failed validation I get an \'invalid JSON response\' instead. It is not retu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题