<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SiteSetting extends Model
{
    protected $guarded = [];

    public static function current(): self
    {
        return static::query()->firstOrCreate(
            ['id' => 1],
            [
                'site_name_ar' => 'RaseedNow',
                'site_name_en' => 'RaseedNow',
                'logo_path' => 'images/brand/raseednow-logo.png',
                'facebook_url' => 'https://facebook.com/',
                'instagram_url' => 'https://instagram.com/',
                'tiktok_url' => 'https://tiktok.com/',
                'youtube_url' => 'https://youtube.com/',
                'whatsapp_url' => 'https://wa.me/',
            ],
        );
    }
}
