red-explosion/undefined
最新稳定版本:v0.2.0
Composer 安装命令:
composer require red-explosion/undefined
包简介
API error handling for Laravel.
README 文档
README
Undefined for Laravel takes care of formatting exceptions and errors into nicely formatted JSON responses.
Warning Package is in early stages of development. It means there may be bugs and API is very likely to change. Create an issue if you spot a bug. Ideas are welcome.
Installation
You can install the package via composer:
composer require red-explosion/undefined
You can publish the config file with:
php artisan vendor:publish --tag="undefined-config"
Usage
In order to use Undefined, you need to replace your exception handler. Replace the following in your
bootstrap/app.php file:
$app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, App\Exceptions\Handler::class );
with the following:
$app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, RedExplosion\Undefined\ExceptionHandler::class );
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover a security vulnerability, please send an e-mail to Ben Sherred via ben@redexplosion.co.uk. All security vulnerabilities will be promptly addressed.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 200
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-22