$model->batch, 'event' => $model->event, 'ip' => $model->ip, 'description' => $model->description, 'properties' => $model->properties, 'timestamp' => $model->timestamp->toIso8601String(), ]; } public function includeActor(ActivityLog $model) { if (!$model->actor instanceof User) { return $this->null(); } return $this->item($model->actor, $this->makeTransformer(UserTransformer::class), User::RESOURCE_NAME); } }