<?php

namespace App\Models;

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

class Library extends Model
{
    use LogsActivity;

    protected $fillable = [
        'name',
        'description',
        'library_title',
        'online_resources_title',
        'resources_title',
        'resources_description',
        'opening_hours_title',
        'library_opening_time',
        'library_closing_time',
        'library_time_description',
        'contact_title',
        'tittle_circulation',
        'desk_contact_number1',
        'desk_contact_number2',
        'desk_email',
        'desk_title_2',
        'renewal_text_1',
        'renewal_text_2',
        'renewal_text_3',
        'background_image',
        'library_policy_title',
        'library_policy_description',
    ];

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