spatie 3 jaar geleden

Spatie | Introducing Laravel Health

In this stream, I'll demo and source dive our newest package: Laravel Health

Using this package you can monitor the health of your application by registering one of the available checks.




Here's an example where we'll monitor used disk space:

Code
// typically, in a service provider use Spatie\Health\Facades\Health; use Spatie\Health\Checks\Checks\UsedDiskSpaceCheck; Health::checks([ UsedDiskSpaceCheck::new() ->warnWhenUsedSpaceIsAbovePercentage(70) ->failWhenUsedSpaceIsAbovePercentage(90), ]);
spatie