fredbradley/filesystem-health-check

A Spatie Laravel Health Check, that checks your Laravel filesystems are connectable

Maintainers

Package info

github.com/fredbradley/filesystem-health-check

pkg:composer/fredbradley/filesystem-health-check

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.4 2026-05-28 11:35 UTC

This package is auto-updated.

Last update: 2026-05-28 11:35:36 UTC


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.