控制器或路由使用withErrors放回错误信息
前台使用$errors->all() 接收
laravel 返回自定义错误
原文:https://www.cnblogs.com/duansong/p/12093519.html