matriphe/laravel-airbrake-codebase 问题修复 & 功能扩展

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

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

matriphe/laravel-airbrake-codebase

最新稳定版本:1.2

Composer 安装命令:

composer require matriphe/laravel-airbrake-codebase

包简介

Laravel 5 package for Codebase Exceptions (https://www.codebasehq.com/) handler using Airbrake API

README 文档

README

This is a Laravel 5 and Lumen package for Codebase Exceptions handler using Airbrake PHP package.

This package will configure an instance of Airbrake\Notifier with an project ID and key from Codebase Exceptions handler.

Install

Require it via composer.

composer require matriphe/laravel-airbrake-codebase

Laravel

For Laravel version below 5.4, add package to list of service providers in config/app.php file. No need to add this manually in Laravel 5.5 since it used auto package discovery.

'providers' => [
    Matriphe\Codebase\CodebaseServiceProvider::class,
],

Publish and fill out the config/codebase.php file with your project ID, key, and ignored environments.

php artisan vendor:publish --provider="Matriphe\Codebase\CodebaseServiceProvider"

Lumen

Register package by adding this line in bootstrap/app.php.

$app->register(Matriphe\Codebase\CodebaseServiceProvider::class);

Manually copy the config file to your config path. If config path doesn't exists, make it first.

cp vendor/matriphe/laravel-airbrake-codebase/config/codebase.php config/

Ignoring Exceptions

To ignore some exceptions sent to Codebase Exceptions, just add the ignored exceptions in app/Exceptions/Handler.php in $dontReport section of your application.

class Handler extends ExceptionHandler
{
   /**
     * A list of the exception types that should not be reported.
     *
     * @var array
     */
    protected $dontReport = [
        HttpException::class,
        ModelNotFoundException::class,
        YourIgnoredException::class,
    ];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固