<?php

namespace App\Models;

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

class applynowInfo extends Model
{
    use LogsActivity;

    protected $fillable = [
        'title',
        'text',
        'button_label',
        'button_color',
        'button_background_color',
        'faq_title',
        'faq_items',
    ];

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

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