<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BrandSetting extends Model
{
    protected $fillable = ['primary_color', 'secondary_color', 'background_color', 'text_color', 'font_family', 'button_radius', 'card_radius', 'gradient_enabled', 'animations_enabled'];

    protected function casts(): array
    {
        return ['gradient_enabled' => 'boolean', 'animations_enabled' => 'boolean'];
    }

    public static function current(): self
    {
        return static::firstOrCreate([]);
    }
}
