Skip to content

Storage Check

Storage Check

Creates and deletes a test file on the configured disk to verify read/write permissions.

Configuration

'checks_config' => [
    'storage' => ['disk' => 'local'],
],

Usage

use Cbox\LaravelHealth\Checks\StorageCheck;

'checks' => [
    'readiness' => [
        StorageCheck::class,
    ],
],

Behavior

  • Writes a test file to the configured disk
  • Deletes the test file
  • Returns ok on success, critical on any failure