laravel-health-checks maintained by code16
Description
Various checks for spatie/laravel-health
Author
Last update
2026/04/13 11:28
(dev-main)
License
Downloads
1 285
Tags
You can install the package via composer:
composer require code16/laravel-health-checks
Usage
Declare this check in your HealthCheckServiceProvider:
PhpUploadConfigCheck::new()
// in Mb, If you want to check GB values, use number * 1024 (i.e: 8 * 1024 will match a 8G config value)
->setPostMaxSizeInMb(8)
->setMaxUploadSizeInMb(200)
// By default, the check will allow a greater value, if you want a strict check, you'll have to set ->allowGreaterValue(allow: false)
->allowGreaterValue(allow: true, max: 200), // Define a maximum value
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.