laravel 自定义API异常处理类

1.创建ApiException.php

 

2.修改Handler.php

原文地址:https://www.cnblogs.com/yangfei123/p/11289531.html