Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Health Laravel Package

spatie/laravel-health

Monitor your Laravel app’s health by registering checks (disk space, etc.) with warning/fail thresholds. Get notified via mail or Slack when checks degrade, and extend with custom checks for proactive alerting.

View on GitHub
Deep Wiki
Context7

title: Endpoints weight: 5

The package offers a couple of controllers that can be used to check the health of your application.

A beautiful status page

The HealthCheckResultsController will display a beautiful page with all health check results. You can find more detailed information on this page here.

Simple health check

The SimpleHealthCheckController will return either a status of 200 for a healthy application or 503 for a unhealthy one without exposing any sensitive information about your application.

This is particularly helpful when you want to check the readiness of a container or a pod as they infer this by the responses status code.

Route::get('health', \Spatie\Health\Http\Controllers\SimpleHealthCheckController::class);

Detailed health check

Alternatively you can also register the HealthCheckJsonResultsController, this one will give you a detailed view of all the checks that have been run with their status and meta data. This endpoint will also always return a status of 200 unless something really goes wrong.

If you don't want to expose this info, you can add an auth middleware.

Route::middleware('auth')->get('health', \Spatie\Health\Http\Controllers\HealthCheckJsonResultsController::class);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport