30 lines
552 B
PHP
30 lines
552 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Database\Factories\TimelineEntryFactory;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TimelineEntry extends Model
|
|
{
|
|
/** @use HasFactory<TimelineEntryFactory> */
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'year',
|
|
'title',
|
|
'body',
|
|
'icon',
|
|
'sort_order',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'year' => 'integer',
|
|
'sort_order' => 'integer',
|
|
];
|
|
}
|
|
}
|