migrate template

This commit is contained in:
Mekan1206
2026-06-06 12:56:15 +05:00
parent e57fdfc2ad
commit 24b8539e98
135 changed files with 7586 additions and 237 deletions

View File

@@ -0,0 +1,29 @@
<?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',
];
}
}