<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
use Spatie\Activitylog\LogOptions;

class AboutUs extends Model
{
    use LogsActivity;

    protected $fillable = [
        'background_image',
        'short_description',
        'main_title',
        'about_description',
        'additional_sections',
        'history_title',
        'history_description',
        'history_photos',

    ];

    protected $casts = [
        'history_photos' => 'array',
        'additional_sections' => 'array',

    ];

    public function getActivitylogOptions(): \Spatie\Activitylog\LogOptions
    {
        return \Spatie\Activitylog\LogOptions::defaults()->logAll();
    }
}

