wamesk/core
Composer 安装命令:
composer require wamesk/core
包简介
README 文档
README
Installation
composer require wamesk/core
Usage
ExceptionHandler
When using wamesk/laravel-auth package or WameException exception you need to register this ExceptionHandler.
// bootstrap/app.php ->withExceptions(function (Exceptions $exceptions) { ... $exceptions->render(resolve(ExceptionHandler::class)); ... })->create();
WameException
Was created to be used with ExceptionHandler for custom frontend response, can be used anywhere in project.
Code in WameException will be used as status code
Message will be used as code and will be put in __() for message
Response example
{
"code": "examplecode",
"message": "examplemessagee"
}
统计信息
- 总下载量: 259
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2024-05-16