Download the PHP package waypointer-digital/bug-tracking-laravel without Composer
On this page you can find all versions of the php package waypointer-digital/bug-tracking-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download waypointer-digital/bug-tracking-laravel
More information about waypointer-digital/bug-tracking-laravel
Files in waypointer-digital/bug-tracking-laravel
Package bug-tracking-laravel
Short Description Kanbino Bug Tracking SDK for Laravel - Error capture, breadcrumbs, and session replay
License MIT
Homepage https://github.com/Waypointer-Digital/bug-tracking-laravel
Informations about the package bug-tracking-laravel
Kanbino Bug Tracking SDK for Laravel
Capture PHP exceptions and JavaScript errors from your Laravel application and send them to Kanbino.
Requirements
- PHP 8.2+
- Laravel 11 or 12
Installation
Publish the config file:
Add your DSN key and Kanbino URL to .env:
You can find your DSN key in Kanbino > Bug Tracking > Projects > [Your Project].
How It Works
Once installed, the SDK automatically:
- Catches all unhandled PHP exceptions and sends them to Kanbino
- Records breadcrumbs from database queries, log entries, and HTTP client calls
- Captures request data, authenticated user info, and runtime details (PHP version, memory, etc.)
- Deduplicates errors server-side via fingerprinting
Error reports are sent asynchronously via your Laravel queue by default, so they don't slow down your application.
JavaScript Error Capture
To also capture frontend JavaScript errors, publish the JS asset and add the Blade directive to your layout:
Then in your Blade layout (before </head>):
This captures:
window.onerrorand unhandled promise rejections- Console errors and warnings
- XHR/fetch requests as breadcrumbs
- Click and navigation events as breadcrumbs
Configuration
All options are documented in config/kanbino-bug-tracking.php. Key settings:
| Option | Default | Description |
|---|---|---|
dsn |
— | Your project's DSN key (required) |
url |
https://app.kanbino.com |
Your Kanbino instance URL |
environment |
APP_ENV |
Environment name sent with reports |
release |
null |
App version or commit hash for tracking regressions |
queue |
true |
Send reports via queue (recommended) |
sample_rate |
1.0 |
0.0 to 1.0 — fraction of errors to capture |
Ignored Exceptions
By default, these exceptions are not reported (they produce noise):
ValidationExceptionNotFoundHttpExceptionAuthenticationExceptionMethodNotAllowedHttpExceptionTokenMismatchException
Edit the ignored_exceptions array in the config to customize.
Before Send Callback
Filter or modify payloads before they're sent:
Sensitive Data
Request headers and body fields are automatically sanitized. By default, these headers are filtered:
Authorization,Cookie,X-CSRF-TOKEN
And these body keys:
password,password_confirmation,secret,token,credit_card,card_number,cvv
Customize via the request.sanitize_headers and request.sanitize_body_keys config arrays.
Multi-Tenancy (Spatie)
If your application uses Spatie Laravel Multitenancy with queues_are_tenant_aware_by_default enabled, the SendErrorReport job will fail because it has no tenant context.
Add the job to the not_tenant_aware_jobs array in config/multitenancy.php:
Manual Capture
You can manually capture exceptions or add context:
Middleware
The SDK includes a middleware that clears breadcrumbs per request and captures the current URL:
Breadcrumbs
Breadcrumbs are a trail of events leading up to an error. The SDK automatically records:
| Type | Source | Example |
|---|---|---|
| Database queries | DB::listen |
SELECT * FROM users WHERE id = ? (42ms) |
| Log entries | Log channel | User login failed for [email protected] |
| HTTP client calls | Http::get() |
GET https://api.example.com/data (200, 150ms) |
Disable individual breadcrumb types in the config:
License
MIT
All versions of bug-tracking-laravel with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/queue Version ^11.0|^12.0