Checks
Disk Space Check
Overview
This check gets the available free space on the specified drive using the disk_free_space
PHP function and compares it with the specified threshold.
Options
drive($path)
: Changes the drive to check from the default of/
threshold($kilobytes)
: Changes the threshold from the default of 5GBminMB($megabytes)
: Changes the threshold to the specified number of MegaBytesminGB($gigabytes)
: Changes the threshold to the specified number of GigaBytesminTB($terabytes)
: Changes the threshold to the specified number of TeraBytes
Using this check
You can update your FireTowerServiceProvider
class to include the check and any options.
<?php
//...
class FireTowerServiceProvider extends ServiceProvider
{
public function boot(): void
{
//...
FireTower::checks(function () {
return [
//...
DiskSpaceCheck::check()->minGB(10)->drive('/mount/files'),
];
});
}
}