fredbradley/filesystem-health-check
Composer 安装命令:
composer require fredbradley/filesystem-health-check
包简介
A Spatie Laravel Health Check, that checks your Laravel filesystems are connectable
README 文档
README
A Spatie Laravel Health Check that checks it can connect to your Laravel Filesystems
Instructions
First, ensure that Spatie Laravel Health is set up and working as expected on your instance. Documentation can be found here.
Then install this package:
composer require fredbradley/filesystem-health-check
Usage
To use this check you need to add it to your Health::checks() method. It will by default, assume that it should have full read/write access, and places a dummy file in the root of the filesystem and reads it back, then removes it. If you have a filesystem that you only read from, and don't have write access that's what the readOnly() method is for.
Examples:
use FredBradley\FilesystemHealthCheck\Checks\FilesystemHealthCheck; Health::checks([ FilesystemHealthCheck::new()->disk('sftp')->name('Check SFTP'), // checks read and write FilesystemHealthCheck::new()->disk('ext01')->readOnly()->name('Check EXT01 Read Only'), // checks read only ]);
Contribution
You're very welcome to submit PRs.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-28