shlogg · Early preview
Paul Redmond @paulredmond

Laravel 11 Health Endpoint: Configurable Route For Application Status

Laravel 11 introduces a new `/up` endpoint for application health checks, defined in `bootstrap/app.php`. The route emits a `DiagnosingHealth` event and returns an animated "Application up" health page.

As part of the release of Laravel 11, new applications include a health /up endpoint. This route is defined in the new bootstrap/app.php file by passing the health parameter—which is defined by default in the Laravel 11 skeleton:
 Application::configure(basePath: dirname(__DIR__))     ->withProviders()     ->withRouting(         web: __DIR__.'/../routes/web.php',         // api: __DIR__.'/../routes/api.php',         commands: __DIR__.'/../routes/console.php',         // channels: __DIR__.'/../routes/channels.php',+        health: '/up',      )     // ...
When setting up the application routing...