Skip to content

LaraBug/LaraBug

Repository files navigation

LaraBug

LaraBug Laravel SDK

Official Laravel SDK for larabug.com. Captures unhandled exceptions and queued job failures from Laravel 6 through 13 on PHP 7.4 and newer.

Software License Latest Version on Packagist Build Status Total Downloads

Installation

composer require larabug/larabug

Publish the config file:

php artisan vendor:publish --provider="LaraBug\ServiceProvider"

Set your credentials in .env:

LB_KEY=your-login-key
LB_PROJECT_KEY=your-project-key

Get both keys from your project at larabug.com.

Finally, add larabug to your default log stack in config/logging.php:

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'larabug'],
        'ignore_exceptions' => false,
    ],

    'larabug' => [
        'driver' => 'larabug',
    ],
],

That's it. Every unhandled exception, and every failed queue job, now reports to LaraBug automatically.

Documentation

Full documentation — configuration, exception capturing, queue and job monitoring, user context, testing, and troubleshooting — lives at larabug.com/docs.

Related

License

The LaraBug Laravel SDK is open source software licensed under the MIT license.