*/ use HasFactory, LogsActivity, SoftDeletes; /** * @var list */ protected $fillable = [ 'name', 'phone', 'email', 'target_course', 'education_level', 'subject', 'message', 'status', 'notes', 'is_read', 'source', 'utm', 'consent_kvkk', 'marketing_consent', 'consent_text_version', ]; /** * @return array */ protected function casts(): array { return [ 'status' => LeadStatus::class, 'source' => LeadSource::class, 'is_read' => 'boolean', 'utm' => 'array', 'consent_kvkk' => 'boolean', 'marketing_consent' => 'boolean', ]; } public function getActivitylogOptions(): LogOptions { return LogOptions::defaults() ->logFillable() ->logOnlyDirty(); } }