code16/laravel-health-checks
Composer 安装命令:
composer require code16/laravel-health-checks
包简介
Various checks for spatie/laravel-health
README 文档
README
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.
统计信息
- 总下载量: 2.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-16