<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Page extends Model
{
    use HasFactory;

    protected $fillable = [
        'title',
        'slug',
        'content',
        'parent',
        'meta',
        'custom_header',
        'page_image',
        'is_published',
    ];

    protected $casts = [
        'meta' => 'json',
        'is_published' => 'boolean',
    ];
}
