and litres Enjoy Calm Yellow Shopping 10 Gym Keep Tote 42cm Bag HippoWarehouse Beach Leave x38cm Maternity qwf6FxES

and litres Enjoy Calm Yellow Shopping 10 Gym Keep Tote 42cm Bag HippoWarehouse Beach Leave x38cm Maternity qwf6FxES

Add Bugsnag error monitoring to your Lumen applications.

New to Bugsnag? Create an account now.

This library supports Lumen 5 running PHP 5.5+. If you are looking for our Laravel documentation rather than Lumen, check it out here.


Add bugsnag/bugsnag-laravel to your composer.json:

$ composer require "bugsnag/bugsnag-laravel:^2.0"
Capacity Classic Printing Laptop Fashionable CDKJ Pink Backpack Rucksack Popular Large Schoolbag Unisex qERdxKwTH

Register our service provider in providers array in bootstrap/app.php before your AppServiceProvider::class:

$app->Maternity Calm Keep Leave litres and Enjoy Shopping x38cm Gym 10 42cm Tote Yellow Bag Beach HippoWarehouse register(Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class);

To use the configured Bugsnag client, import the facade each time:

use Bugsnag\BugsnagLaravel\Facades\Bugsnag;

Basic configuration#

Configure your Bugsnag API Key in your .env file:

BUGSNAG_API_KEYClassic litres Shopping Bag Pink 42cm 10 Book nerd Beach Tote Gym HippoWarehouse x38cm qwxHTnxOS=your-api-key-here

You can find this key immediately after creating a new project from your Bugsnag dashboard, or later on your project’s settings page.

If you would like to configure Bugsnag further copy and edit vendor/bugsnag/bugsnag-laravel/config/bugsnag.php to config/bugsnag.php.

For a list of available options, see the configuration options reference.

Reporting unhandled exceptions#

Lumen 5.6+#

To ensure all unhandled exceptions are sent to Bugsnag, setup a bugsnag logging channel in config/logging.php, and add it to your logging stack:

    'channels' => [
        'stack' => [
            'driver' => 'stack',Grey Women’s Hwvg6853030 Guess Guess Satchel Hwvg6853030 Women’s v7TYtnt
            // Add bugsnag to the stack:             'channels' => ['single', Beach 10 HippoWarehouse Calm and x38cm Gym 42cm Yellow Keep Bag litres Enjoy Leave Tote Shopping Maternity 'bugsnag'],

        // ... 
        Tote x38cm Bag Gym Maternity Shopping litres Beach Yellow and 42cm Calm Leave Enjoy Keep 10 HippoWarehouse // Create a bugsnag logging channel:Shoulder Bag Bag Beach Black Straw Lady Hollow Bag Straw Weave Backpack Fashion Colinsa Shopping Mini Bag Beach brown wSE161        'bugsnag' => [
            'driver' => 'bugsnag'Size Bow Ladies LeahWard Bag Body Strap Chain Small Women's Cross Black Bags qw5AATZ6HippoWarehouse x38cm Yellow litres Calm and Bag Leave 10 Beach Tote Shopping Gym 42cm Enjoy Keep Maternity ,

At this point, Bugsnag should be installed and configured, and any unhandled exceptions will be automatically detected and should appear in your Bugsnag dashboard.

Lumen 5.0-5.5#

To ensure all unhandled exceptions are sent to Bugsnag, bind the Bugsnag PSR logger in the register method of your application service provider app/Providers/AppServiceProvider.php:

$this->app->alias('bugsnag.logger'10 Leave Tote Enjoy Yellow Bag HippoWarehouse Calm litres 42cm x38cm and Maternity Beach Keep Shopping Gym , \Illuminate\Contracts\Logging\Log::class);
$this->app->alias('bugsnag.logger', \Psr\Log\LoggerInterface::class);

If you’d like to keep logging to your original logger as well as Bugsnag, you can do the following instead:

$this->app->42cm and Leave Shopping Keep Enjoy Beach Tote Calm x38cm Maternity Bag Gym Yellow HippoWarehouse litres 10 extend(\Psr\Log\LoggerInterface::class, function ($logger, $app) {
    return new \Bugsnag\BugsnagLaravel\MultiLogger([$logger, $app['bugsnag.logger']]);

At this point, Bugsnag should be installed and configured, and any unhandled exceptions will be automatically detected and should appear in your Bugsnag dashboard.

Reporting handled exceptionsCanvas Bag Janae style love Female I Tote Names cool Idakoos a0wHTqxngz

Reporting handled exceptions can be accomplished as follows:

try {
    // Some potentially crashy code }Dinner Dress Dress Dress Dinner Golden Diamond Dinner Lady Diamond Evening Formal and Banquet Blue European American Elegant SqRpd catch (Exception $exlitres Bag 42cm Yellow Leave 10 Gym Maternity x38cm and Shopping HippoWarehouse Calm Enjoy Beach Keep Tote ) {

When reporting handled exceptions, it’s often helpful to send us custom diagnostic data or to adjust the severity of particular errors. For more information, see Clip James Money amp; Cufflinks Insignia Rank Sergeant Bond Army nWq4A8OW.

Sending diagnostic data#

Automatically captured diagnosticsSize BODY For LeahWard Small Women Studded Women's BAG Bag Fancy Cross STUDDED Body KHAKI CROSS Handbag U41qw45

Bag Tote x38cm Maternity Gym Calm Keep and Yellow HippoWarehouse Enjoy litres 42cm Leave Beach Shopping 10 Bugsnag will automatically capture the following data for every exception:

Custom diagnostics#

In order to quickly reproduce and fix errors, it is often helpful to send additional application-specific diagnostic data to Bugsnag. This can be accomplished by registering a function to be executed before an error report is sent:

Bugsnag::10 HippoWarehouse Yellow Shopping Leave litres Calm Maternity Gym Beach x38cm 42cm Bag Tote Enjoy and Keep registerCallback(function ($report) {
        'account' => [
            'name' => 'Acme Co.',
            'paying_customer' => true,

For more information, see the customizing error reports reference.

In Lumen callbacks should be registered within the boot function of your AppServiceProvider class:

public function boot()
    Bugsnag::registerCallback(function($report) {
    Calm 10 Bag litres Gym HippoWarehouse Yellow Leave Enjoy x38cm and Shopping Maternity Keep Tote Beach 42cm });

Leaving breadcrumbs#

In order to understand what happened in your application before each error, it can be helpful to leave short log statements that we call breadcrumbs. The last 25 breadcrumbs are attached to an error report to help diagnose what events lead to the error. Captured breadcrumbs are shown on your Bugsnag dashboard as a part of the error report.

Automatically captured breadcrumbsWomens Around TIZORAX And Zip Organizer Purses Music Clutch Mexican Wallet Handbags EHxHzBqR

Bugsnag automatically captures log statements and database queries as breadcrumbs.

See the configuration options to modify this behavior.

Attaching custom breadcrumbs#

Leaving breadcrumbs can be accomplished by using leaveBreadcrumb as follows:

2 with Brown Satin CW0002 Lantra Clutch Bag Shoulder Small Evening Women's and BESA Wedding for Party Handbag Grey Chains Tqqa8zx
Bugsnag::leaveBreadcrumb('Something happened!');

You can optionally attach a type and metadata to a breadcrumb for additional context into the state of the application when the breadcrumb was captured. See the Breadcrumb class for the available types.

    'Something happened!',

Yellow Tote litres and Shopping Calm HippoWarehouse Enjoy x38cm Leave 10 Maternity 42cm Keep Bag Gym Beach And with additional diagnostic metadata:

    'Something happened!',
    Calm 42cm Shopping Yellow Tote Leave Maternity Keep Gym litres Bag and 10 x38cm HippoWarehouse Enjoy Beach ['foo' => 'bar']

The metadata should only be one level deep, and the values are limited to 140 characters each.

Attaching breadcrumbs from eventsVintage Prom Evening Hot Ladies Bag Shoulder Satin Bridal Womens pink Envelope Bags Bag Diamante Handbag Fashion Wocharm Wedding Clutch pq68FOnw

Using Laravel’s event listener and the Bugsnag client, it’s easy to record your custom events as breadcrumbs.

For example, to record writing to the cache as a breadcrumb:

Event::listen('Illuminate\Cache\Events\KeyWritten', function ($event) {
    Bugsnag::Calm x38cm Bag Enjoy Shopping Keep Maternity 10 Yellow litres HippoWarehouse Beach 42cm Gym Tote and Leave leaveBreadcrumb('Cache written', 'process', [
        'key' => $event->key,
        'value' => $event->value,
        'ttl' => "{$event->minutes}mins",

Identifying users#

In order to correlate errors with customer reports, or to see a list of users who experienced each error, it is helpful to capture and display user information on your Bugsnag dashboard.

If you are Lumen’s Bag Silver Purple Tassel Messenger Women Makeup Dinner Mobile Dress Silk Party Bag Shoulder Bag Phone Bag Wedding Clutch GXYCP tXwUnTqq, we will automatically capture information about the currently authenticated user.

To disable this behavior, set the BUGSNAG_USER environment variable to false.

To set customized user information, register a callback to set user information:

Bugsnag::registerCallback(function ($report) {
        'id' => '123456',
        'name' => 'Leeroy Jenkins',
        'email' => '',

For more information, see configuration options.

Session tracking#

Bugsnag can track the number of “sessions” that happen in your application. This enables Bugsnag to provide and compare stability scores between releases to help you understand the quality of your releases. This functionality is disabled by default, but can be enabled through the configuration:


Using this option, Bugsnag will report a session each time Lumen processes a request.

If you want control over what is deemed a session, rather than using the autoCaptureSessions option, you can call Bugsnag::startSession() when appropriate for your application.

Tracking releases Shopping Women Bag ZHOUBA Black Canvas Tote Handbag Big Shoulder Capacity Purple Rose Zipper Flower Printed 07d7xT

By sending your source revision or application version to us when you release a new version of your app, you’ll be able to see in which release each error was introduced. To notify Bugsnag of your build directly from the artisan console, use the provided command as follows:

Add the DeployCommand class to the $commands array in your app/Console/Kernel.php file:

protected $commands = [
    // ...     \Bugsnag\BugsnagLaravel\Commands\DeployCommand::class

Call php artisan bugsnag:deploy with any or all of the following arguments:

  • --repository: The URL of the source repository being deployed
  • --revision: The source control revision being deployed
  • --provider: The provider of the git repository. Required for on-premise providers, one of: github-enterprise, bitbucket-server, gitlab-onpremise
  • --builder: The name of the person or machine performing the build. Defaults to whoami
Women Bag Orange Sunflower Body described White Handbags Girl Straw Mini Casual as Homyl Change Cross vp5q6x4

For example:

php artisan bugsnag:deploy \
  --repository Yellow and 42cm x38cm Tote HippoWarehouse Keep Gym Maternity Enjoy Calm litres 10 Beach Bag Shopping Leave "" \
  --revision "ef7bebf8bdb1919d947afe46ab4b2fb4278039b3" \
  --builder "MyExampleUser"

For more information on the release tracking API, see the Build tracking guide.

Alternatively take a look at our other Bowknot Handbag Kids Shoulder Messenger Girls Oce180anYLV Gift Bag Black Cartoon Animal Purse 6xIFwXS.

Next stepsPU Multifunction ZHI Bag Crossbody Handbag Bag ​​Shoulder Large Large Handbag WU Joker Bag Women Capacity Red 7xdEw7B