<?php

namespace App\Models;

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

class StudentLifeEvents extends Model
{
    use LogsActivity;

    protected $fillable = [
        'event_tittle',
        'event_description',
        'event_images',
        'background_color',
    ];

    protected $casts = [

        'event_images' => 'array',
    ];

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