From c0678b17fa5186582df883cfd5e2812d0707a235 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Thu, 2 May 2024 21:34:39 +0300 Subject: [PATCH] Update BackupStats.php --- .../Filament/Resources/BackupResource/Widgets/BackupStats.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/Filament/Resources/BackupResource/Widgets/BackupStats.php b/web/app/Filament/Resources/BackupResource/Widgets/BackupStats.php index c4acd30..beae90d 100644 --- a/web/app/Filament/Resources/BackupResource/Widgets/BackupStats.php +++ b/web/app/Filament/Resources/BackupResource/Widgets/BackupStats.php @@ -2,6 +2,7 @@ namespace app\Filament\Resources\BackupResource\Widgets; +use App\BackupStorage; use App\Filament\Resources\BackupResource\Pages\ListBackups; use App\Filament\Resources\Shop\OrderResource\Pages\ListOrders; use App\Models\Backup; @@ -31,7 +32,7 @@ class BackupStats extends BaseWidget } } $usedSpace = 0; - $backupPath = storage_path('backups'); + $backupPath = BackupStorage::getPath(); if (is_dir($backupPath)) { $usedSpace = $this->getDirectorySize($backupPath); }