Replace $guarded usage with explicit $fillable arrays across all models. Sync fillable definitions with current database schema and add tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
355 B
PHP
20 lines
355 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class DockerCleanupExecution extends BaseModel
|
|
{
|
|
protected $fillable = [
|
|
'status',
|
|
'message',
|
|
'cleanup_log',
|
|
'finished_at',
|
|
];
|
|
|
|
public function server(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Server::class);
|
|
}
|
|
}
|