0.0
Laravel 5 – 6
Repository is archived
No commit activity in last 2 years
No release in over 2 years
Report errors to Bugsnag from your Laravel project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>=5.1.0 <6.15.0
nodes/core
^1.1
bugsnag/bugsnag
^3.4
bugsnag/bugsnag-psr-logger
^1.1
 Project Readme

Bugsnag

A Laravel wrapper for Bugsnag Laravel.

Total downloads Monthly downloads Latest release Open issues License Star repository on GitHub Watch repository on GitHub Fork repository on GitHub StyleCI

Introduction

We love Bugsnag. It's pretty much our most used tool in Nodes.

Therefore we decided to make a Laravel wrapper for the service and even managed to squeeze in an additional feature or two.

📦 Installation

To install this package you will need:

  • Laravel 5.1+
  • PHP 5.5.9+

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

"require": {
    "nodes/bugsnag": "^2.0"
}

Or you can run the composer require command from your terminal.

composer require nodes/bugsnag:^2.0

🔧 Setup

Setup service provider in config/app.php

Nodes\ServiceProvider::class,
Nodes\Bugsnag\ServiceProvider::class,

Publish config files

php artisan vendor:publish --provider="Nodes\Bugsnag\ServiceProvider"

If you want to overwrite any existing config files use the --force parameter

php artisan vendor:publish --provider="Nodes\Bugsnag\ServiceProvider" --force

⚙ Usage

After you have added the service provider to the config/app.php array, then it pretty much works automatically.

Only thing you need make sure, is that you've entered the correct API_KEY in the config/nodes/bugsnag.php config file.

Manually reporting exceptions

It happens once in a while, that you might need to try {} catch {} stuff and when you're catching exception you wish to surpress it for the user, but you would actually also like to be notified about it in Bugsnag. Then you can use the global helper method bugsnag_report to that.

function bugsnag_report(\Exception $exception, $meta = [], $severity = null)

🏆 Credits

This package is developed and maintained by the PHP team at Nodes Agency

Follow Nodes PHP on Twitter Tweet Nodes PHP

📄 License

This package is open-sourced software licensed under the MIT license