Laravel guide
Laravel error tracking
Errilo receives your Laravel errors from the official sentry/sentry-laravel package: exceptions thrown in your routes and controllers, with the request and the failing frame of your code. Already on Sentry? Only the DSN changes.
Errilo is in private beta. This guide describes the setup our compatibility suite tests today.
What gets caught
- An exception thrown while handling a request:
Integration::handles()hooks the package into Laravel’s exception handler, which reports it with the request (URL and method) and the failing frame of your file. - Frames of Laravel itself are filed as the
laravel/frameworkdependency, not your code. - A chained exception (
new RuntimeException(…, 0, $previous)): both exceptions arrive, the cause first.
Our compatibility suite runs a Laravel 13 app in a container, sends it a request that throws, and checks in Errilo the issue’s title, the failing frame (routes/web.php), the request, the release, the environment and the SDK version, for every version listed below.
Your APP_KEY and a database password never reach Errilo in clear: the SDK sends them, Errilo replaces them with [Filtered] on receipt, which our suite checks with the app’s real key. A base64: key written in a free-text message is filtered too.
Not covered by our suite: Laravel before 13, queues and Horizon, Octane, and the Inertia and Livewire front ends. Errilo stores no tracing or profiling: leave them off.
Setup
Install the package:
composer require sentry/sentry-laravelSet the DSN of your Errilo project:
SENTRY_LARAVEL_DSN=https://<key>@ingest.errilo.com/<project>Then hook the package into the exception handler. If you already have a Sentry setup, keep it and change the DSN.
<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Sentry\Laravel\Integration;
return Application::configure(basePath: dirname(__DIR__))
// Keep your existing ->withRouting() and ->withMiddleware() calls
->withExceptions(function (Exceptions $exceptions) {
Integration::handles($exceptions);
})->create();Stack traces from your code
PHP needs no source maps: a frame carries your file and line as they are on the server. Errilo turns the usual deployment folders (/var/www/html/, /var/www/, and the releases/<n>/ and current/ folders of Deployer and Capistrano) into paths relative to your repository, and files under vendor/ count as dependencies, not your code. The same error under releases/41/, releases/42/ or current/ stays a single issue across deployments.
Our compatibility suite checks the paths of a PHP app in /var/www/html. The tests of the Errilo app cover the Deployer and Capistrano folders and the grouping across deployments; the suite doesn’t deploy with those tools.
Tested versions
| Tested release | Tested version |
|---|---|
| Oldest | sentry/sentry-laravel:4.22.0 |
| In between | sentry/sentry-laravel:4.26.0 |
| Latest | sentry/sentry-laravel:4.31.0 |
Use sentry/sentry-laravel 4.22.0 or later: it is the oldest 4.x that accepts Laravel 13, the version our suite runs (skeleton 13.11.0, laravel/framework 13.43.0).
Use sentry/sentry 4.17.1 or later, which Composer picks for the package above: earlier versions send a “Deprecated” event with every event under PHP 8.5 and later. Our suite runs PHP 8.6, and nothing else.