<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ShopSection extends Model
{
    protected $fillable = [
        'key', 'type', 'name', 'heading', 'subheading', 'content', 'styles',
        'sort_order', 'is_visible',
    ];

    protected function casts(): array
    {
        return [
            'content' => 'array',
            'styles' => 'array',
            'sort_order' => 'integer',
            'is_visible' => 'boolean',
        ];
    }
}
