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: Using Secret Token weight: 1

If you want a simple way to protect an endpoint from unwanted access over the internet, you can use the Secret Token feature. This allows you to restrict access by requiring a predefined token to be included in requests, ensuring that only authorized clients can interact with the endpoint.

Usage

Here's how you can use Secret Token to protect an endpoint:

Define secret token in your .env file:

HEALTH_SECRET_TOKEN=your-secret-token

Use RequiresSecretToken middleware in your route:

Route::get('/', HealthCheckJsonResultsController::class)->middleware(RequiresSecretToken::class);

Add X-Secret-Token in the request header:

X-Secret-Token: your-secret-token

Warning

Secret Token is a simple way to protect an endpoint from unwanted access over the internet. However, it is not a foolproof security measure. If you need a more secure solution, consider using a more advanced authentication method.

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