activity = activity() ->withProperties([ 'type' => ActivityTypes::COOLIFY_PROCESS, 'status' => ProcessStatus::HOLDING, 'user' => $this->user, 'destination' => $this->destination, 'port' => $this->port, 'command' => $this->command, ]) ->log("Awaiting command to start...\n\n"); } public function __invoke(): Activity { $job = new ExecuteCoolifyProcess($this->activity); dispatch($job); $this->activity->refresh(); return $this->activity; } }