lsgapi/exception

There is no license information available for the latest version (dev-master) of this package.

抛出异常

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

This package is auto-updated.

Last update: 2024-04-17 11:24:39 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);