*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'event' => $this->event, 'author' => [ 'id' => $this->user_id, 'name' => $this->resource->author(), ], // Field => {old, new}. Translatable fields carry every language. 'changes' => (object) ($this->changeset ?? []), 'created_at' => $this->created_at?->toIso8601String(), ]; } }