承接 wamesk/core 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-05-16