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: Meilisearch weight: 14

meilisearch.md This check will verify if Meilisearch is running. It will call Meilisearch's built-in health endpoint and verify that its status returns available.

Usage

Here's how you can register the check.

use Spatie\Health\Facades\Health;
use Spatie\Health\Checks\Checks\MeilisearchCheck;

Health::checks([
    MeilisearchCheck::new(),
]);

Customizing the endpoint

By default, the check will try to get a response from "https://127.0.0.1:7700/health".

You can use url() method to change that url.

use Spatie\Health\Facades\Health;
use Spatie\Health\Checks\Checks\MeilisearchCheck;

Health::checks([
    MeilisearchCheck::new()->url("https://your-custom-url:1234/custom-endpoint"),
]);

Customizing the timeout

By default, the check has a timeout of 1 second.

You can use timeout() to set the maximum number of seconds the HTTP request should run for before it fails.

use Spatie\Health\Facades\Health;
use Spatie\Health\Checks\Checks\MeilisearchCheck;

Health::checks([
    MeilisearchCheck::new()->timeout(2),
]);

Adding an authorization header

You can use token() to add an authorization header to the request.

use Spatie\Health\Facades\Health;
use Spatie\Health\Checks\Checks\MeilisearchCheck;

Health::checks([
    MeilisearchCheck::new()->token('auth-token'),
]);
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