← All platforms

Laravel error tracking

Laravel knows how to report an exception. Telebugs gives that report a home on your server, through the Sentry Laravel integration.

~/hoofnotes  composer require sentry/sentry-laravel
Generating optimized autoload files
~/hoofnotes  nvim bootstrap/app.php
<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Sentry\Laravel\Integration;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
Integration::handles($exceptions);
})->create();
~/hoofnotes  # Copy the complete Telebugs DSN, key and path included.
~/hoofnotes  php artisan sentry:publish --dsn='YOUR_TELEBUGS_DSN'
~/hoofnotes  php artisan config:clear
~/hoofnotes  php artisan sentry:test

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep sentry/sentry-laravel. Point SENTRY_LARAVEL_DSN at Telebugs and refresh the configuration your app and workers load. No Sentry account needed.

Can I keep using Laravel’s report helper?

Yes. report($exception) works through Laravel’s exception reporting, including the Sentry integration. You don’t need a Telebugs-specific reporting API.

What will I see when a request fails?

The exception, its PHP backtrace, and the context the SDK includes. Enough to start investigating without asking your visitor to reproduce the problem.

What about a Vue or React frontend?

We support Vue and React, too. Add the frontend SDK and keep browser and Laravel error reports on your Telebugs server.