File tree Expand file tree Collapse file tree 5 files changed +532
-3
lines changed Expand file tree Collapse file tree 5 files changed +532
-3
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App \Providers ;
4+
5+ use Illuminate \Support \ServiceProvider ;
6+ use Spatie \Health \Checks \Checks \DatabaseCheck ;
7+ use Spatie \Health \Checks \Checks \HorizonCheck ;
8+ use Spatie \Health \Checks \Checks \UsedDiskSpaceCheck ;
9+ use Spatie \Health \Facades \Health ;
10+
11+ class HealthCheckProvider extends ServiceProvider
12+ {
13+ /**
14+ * Register services.
15+ */
16+ public function register (): void
17+ {
18+ //
19+ }
20+
21+ /**
22+ * Bootstrap services.
23+ */
24+ public function boot (): void
25+ {
26+ Health::checks ([
27+ UsedDiskSpaceCheck::new (),
28+ DatabaseCheck::new (),
29+ HorizonCheck::new ()
30+ ]);
31+ }
32+ }
Original file line number Diff line number Diff line change 22
33return [
44 App \Providers \AppServiceProvider::class,
5+ App \Providers \HealthCheckProvider::class,
56 App \Providers \HorizonServiceProvider::class,
67 App \Providers \HttpclientServiceProvider::class,
7- App \Providers \TUFServiceProvider::class
8+ App \Providers \TUFServiceProvider::class,
89];
Original file line number Diff line number Diff line change 1111 "laravel/horizon" : " ^5.29" ,
1212 "laravel/octane" : " ^2.5" ,
1313 "laravel/tinker" : " ^2.9" ,
14- "php-tuf/php-tuf" : " 1.0.1"
14+ "php-tuf/php-tuf" : " 1.0.1" ,
15+ "spatie/laravel-health" : " ^1.34"
1516 },
1617 "require-dev" : {
1718 "fakerphp/faker" : " ^1.23" ,
You can’t perform that action at this time.
0 commit comments