client = new ClockworkClient(data_get($this->settings, 'key')); } public function send() { $response = collect(); foreach ($this->recipients as $recipient) { $response->put($recipient, $this->client->send([ 'to' => $recipient, 'message' => $this->body, ])); } return (count($this->recipients) == 1) ? $response->first() : $response; } }