lsgapi/exception

此包的最新版本(dev-master)没有可用的许可证信息。

抛出异常

dev-master 2022-11-17 08:17 UTC

This package is auto-updated.

Last update: 2024-09-17 12:08:11 UTC


README

在 config/app.php 下新增

Lsg\Exception\PackageApiExceptionServiceProvider::class 'ApiException' => Lsg\Exception\ApiException::class

composer require lsgapi/exception php artisan vendor:publish

项目中使用

throw new \ApiException(400);