mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Update BackupStats.php
This commit is contained in:
parent
aecf11c084
commit
c0678b17fa
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue