16 lines
366 B
PHP
16 lines
366 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
final class CmsPage extends Model
|
|
{
|
|
protected $fillable = ['title', 'slug', 'excerpt', 'body', 'meta_title', 'meta_description', 'is_published', 'published_at'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['is_published' => 'boolean', 'published_at' => 'datetime'];
|
|
}
|
|
}
|