fredbradley/filesystem-health-check 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固