mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-09-19 23:31:12 +00:00
Update Backup.php
This commit is contained in:
parent
bd53013d4b
commit
bc322f7084
|
@ -52,13 +52,8 @@ class Backup extends Model
|
||||||
});
|
});
|
||||||
|
|
||||||
static::deleting(function ($model) {
|
static::deleting(function ($model) {
|
||||||
if (is_file($model->filepath)) {
|
if (is_file($model->file_path)) {
|
||||||
// ShellApi::safeDelete($model->path, [
|
shell_exec('rm -rf ' . $model->file_path);
|
||||||
// Storage::path('backups')
|
|
||||||
// ]);
|
|
||||||
// if (Storage::disk('backups')->exists($model->filepath)) {
|
|
||||||
// Storage::disk('backups')->delete($model->filepath);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue