package lumen-api-hander
lumen api 异常处理类
hongjh/lumen-api-hander
lumen api 异常处理类
- Friday, April 28, 2017
- by hongjh
- Repository
- 0 Watchers
- 0 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Lumen ApiHander
Lumen Api 异常处理类, (*1)
安装
composer require "hongjh/lumen-api-hander"
配置
在 /bootstrap/app.php 40-45行左右,替换, (*2)
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
Hongjh\Exceptions\ApiHandler::class
);
开启调试模式
设置 .env APP_DEBUG=true, 并在
在 HTTP 报头加上 Accept = text/html,会显示错误栈
dev-master
9999999-dev
lumen api 异常处理类
Sources
Download
MIT
The Requires
by
hongjh
laravel
api
lumen
exception