<?php

namespace App\Models;

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

class Alumni extends Model
{
    use LogsActivity;

    protected $fillable = [
        'main_title',
        'background_image',
        'main_description',
        'images',
        'second_title',
        'second_description',
        'success_title',
        'alumni_members_count',
    ];

    protected $casts = [
        'images' => 'array',
    ];

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

