laravel 返回自定义错误

控制器或路由使用withErrors放回错误信息

 前台使用$errors->all() 接收

原文地址:https://www.cnblogs.com/duansong/p/12093519.html