phase two updates
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Pages\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
final class Page extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes;
|
||||
protected $table = 'pages';
|
||||
protected $fillable = ['title', 'slug', 'summary', 'content', 'status', 'published_at', 'is_home'];
|
||||
|
||||
protected function casts(): array { return [
|
||||
'published_at' => 'datetime',
|
||||
'is_home' => 'boolean'
|
||||
]; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user