2017 © Pedro Peláez
 

package lumen-api-hander

lumen api 异常处理类

image

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

The README.md

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,会显示错误栈

The Versions

28/04 2017

dev-master

9999999-dev

lumen api 异常处理类

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Avatar hongjh

laravel api lumen exception