$this->id, 'user_id' => $this->user_id, 'user' => new UserResource($this->whenLoaded('user')), 'action' => $this->action, 'description' => $this->description, 'subject_type' => $this->subject_type, 'subject_id' => $this->subject_id, 'project_id' => $this->project_id, 'task_id' => $this->task_id, 'properties' => $this->properties, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }