Official Laravel SDK for larabug.com. Captures unhandled exceptions and queued job failures from Laravel 6 through 13 on PHP 7.4 and newer.
composer require larabug/larabugPublish 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.
Full documentation — configuration, exception capturing, queue and job monitoring, user context, testing, and troubleshooting — lives at larabug.com/docs.
- LaraBug JavaScript SDK — frontend error tracking for Vanilla JavaScript, React, Vue 3, and Inertia.js.
The LaraBug Laravel SDK is open source software licensed under the MIT license.
