programic/laravel-tools 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

programic/laravel-tools

最新稳定版本:v3.1.2

Composer 安装命令:

composer require programic/laravel-tools

包简介

Laravel extension

README 文档

README

Latest Version on Packagist Tests Total Downloads

This package is a Laravel extension

Installation

This package requires PHP 5.6 and Laravel 5.0 or higher.

composer require programic/laravel-tools

Usage

Sentry

Laravel 11+

Add this chain to the Application in bootstrap/app.php

->withExceptions(function (Exceptions $exceptions) {
    Integration::handles($exceptions);
})

Laravel 8 - 10

Replace report method in App\Exceptions\Handler

public function report(Exception $exception)
{
    if ($this->shouldReport($exception) && app()->bound('sentry')) {
        app('sentry')->captureException($exception);
    }

    parent::report($exception);
}

Mysql support

Add Mysql8ServiceProvider in your config/app.php to add mysql 8 support for migrations

Add debug data to api responses

Add Programic\Tools\Middleware\DebugBarMeta as middleware in your App/Http/Kernel.php API group to add debug data in every response

Vue package

Use our vue plugin to add this debug data to the Vue Devtools: https://github.com/programic/api-debugbar-vue-devtools

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email info@programic.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 20.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-12-13