File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
'disk_names ' => [
9
9
'local ' ,
10
-
10
+
11
11
],
12
12
];
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ public function handle(): int
17
17
$ this ->comment ('Recording metrics... ' );
18
18
19
19
collect ($ disk_names = config ('disk-monitor.disk_names ' ))
20
- ->each (fn (string $ disk_name ) => $ this ->recordMetrics ($ disk_name ));
20
+ ->each (fn (string $ disk_name ) => $ this ->recordMetrics ($ disk_name ));
21
21
22
22
$ this ->comment ('All done! ' );
23
23
24
24
return self ::SUCCESS ;
25
25
}
26
26
27
- protected function recordMetrics (string $ disk_name ):void
27
+ protected function recordMetrics (string $ disk_name ): void
28
28
{
29
29
$ this ->info ("Recording metrics for disk ` {$ disk_name }`... " );
30
30
$ disk = Storage::disk ($ disk_name );
Original file line number Diff line number Diff line change 7
7
class DiskMonitorEntry extends Model
8
8
{
9
9
public $ guarded = [];
10
+
10
11
public $ casts = [
11
- 'file_count ' => 'integer '
12
+ 'file_count ' => 'integer ' ,
12
13
];
13
14
14
15
public static function last (): ?self
You can’t perform that action at this time.
0 commit comments