smart-contact / sc-utils
SmartContact 工具类
v1.1.1
2021-05-19 09:02 UTC
Requires
- google/cloud-bigquery: ^1.22
- illuminate/support: ~7|~8
- jenssegers/agent: ^2.6
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
README
这里应该是你的描述。请查看 contributing.md 以查看待办事项清单。
安装
通过 Composer
$ composer require smart-contact/responses
使用方法
在所需的控制器上包含特性 SmartContact\Responses\Traits\HasResponses
通过扩展 App\Exceptions\Handler
class Handler extends \SmartContact\Responses\Exceptions\Handler { ... //only if you add custom exceptions public function register() { $this->setOverride(true); ... Other Report And Render ... $this->renderable(function (\ErrorException $e) { return response($this->retrieveResponse($e), 500); }); } }
变更日志
请参阅 changelog 了解最近更改的详细信息。
测试
$ composer test
贡献
请参阅 contributing.md 了解详情和待办事项清单。
安全性
如果您发现任何与安全性相关的问题,请通过作者邮箱报告,而不是使用问题跟踪器。
鸣谢
许可协议
许可协议。有关更多信息,请参阅 许可文件。