<?php

namespace App\Models;

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

class NewsEvent extends Model
{
    use LogsActivity;

    protected $fillable = [
        'main_title',
        'text',
        'button_text',
        'button_color',
        'button_background_color',
        'news_count',
    ];

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