style updates
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Enterprise\Models;
|
||||
|
||||
use App\Models\User;
|
||||
@@ -8,7 +9,16 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
final class Backup extends Model
|
||||
{
|
||||
protected $table = 'enterprise_backups';
|
||||
|
||||
protected $fillable = ['user_id', 'disk', 'path', 'size', 'status', 'message', 'completed_at'];
|
||||
protected function casts(): array { return ['completed_at' => 'datetime']; }
|
||||
public function user(): BelongsTo { return $this->belongsTo(User::class); }
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['completed_at' => 'datetime'];
|
||||
}
|
||||
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user