mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
#591 - backups
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
use App\Enums\BackupFileStatus;
|
||||
use App\Enums\StorageProvider as StorageProviderAlias;
|
||||
use Carbon\Carbon;
|
||||
use Database\Factories\BackupFileFactory;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
@ -20,7 +21,7 @@
|
||||
*/
|
||||
class BackupFile extends AbstractModel
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\BackupFileFactory> */
|
||||
/** @use HasFactory<BackupFileFactory> */
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
|
@ -149,7 +149,7 @@ public function getContent(?int $lines = null): ?string
|
||||
return $content ?? 'Empty log file!';
|
||||
}
|
||||
|
||||
return "Log file doesn't exist!";
|
||||
return "Log file doesn't exist or is empty!";
|
||||
}
|
||||
|
||||
public static function log(Server $server, string $type, string $content, ?Site $site = null): ServerLog
|
||||
|
Reference in New Issue
Block a user