priondevelopment/error
Composer 安装命令:
composer require priondevelopment/error
包简介
Throw consistent error exceptions in an API.
README 文档
README
Return API Errors consistently throughout an application. Allow users to customize their response messages.
Setup
Lumen
In order to use this plugin you must include the following in your app file:
$app->register(Error\ErrorServiceProvider::class);
Also, replace the default error handler with:
$app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, Error\Exceptions\Handler::class );
To create a customizable config file:
php artisan error:config
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-25