<?php

namespace App\Models;

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

class AboutUsMessage extends Model
{
    use LogsActivity;

    protected $fillable = [
        'messages_tittle',
        'messages_name',
        'messages_position',
        'messages_text',
        'messages_photo',
    ];

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