$this->id, 'user' => $this->user?->name, 'action' => $this->action, 'entity' => class_basename($this->model_type), 'model_id' => $this->model_id, 'description' => $this->description, 'ip_address' => $this->ip_address, 'created_at' => $this->created_at?->toDateTimeString(), ]; } }