28 lines
463 B
PHP
28 lines
463 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ArchiveEntity extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'focus',
|
|
'related',
|
|
'name',
|
|
'description',
|
|
'enabled',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'related' => 'array',
|
|
'enabled' => 'boolean',
|
|
];
|
|
}
|
|
}
|