'integer', 'is_active' => 'boolean', ]; } public function getActivitylogOptions(): LogOptions { return LogOptions::defaults() ->logOnly(['name', 'color', 'is_active', 'sort_order']) ->logOnlyDirty() ->dontLogIfAttributesChangedOnly(['updated_at']) ->useLogName('genre'); } public function tapActivity(Activity $activity, string $eventName): void { $properties = $activity->properties?->toArray() ?? []; $properties['organisation_id'] = $this->organisation_id; $activity->properties = collect($properties); } public function organisation(): BelongsTo { return $this->belongsTo(Organisation::class); } public function artists(): HasMany { return $this->hasMany(Artist::class, 'default_genre_id'); } }