Update HostingSubscriptionBackup.php

This commit is contained in:
Bozhidar 2024-05-07 17:07:09 +03:00
parent 6e18fb4513
commit e4c172218a

View file

@ -60,9 +60,9 @@ class HostingSubscriptionBackup extends Model
});
static::deleting(function ($model) {
// if (is_file($model->filepath)) {
// shell_exec('rm -rf ' . $model->filepath);
// }
if (is_file($model->file_path)) {
shell_exec('rm -rf ' . $model->file_path);
}
});
}