JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbrchannels = Arr::wrap($channels); } /** * Set the connection the event should be broadcast on. */ public function via(string $connection): static { $this->connection = $connection; return $this; } /** * Set the name the event should be broadcast as. */ public function as(string $name): static { $this->name = $name; return $this; } /** * Set the payload the event should be broadcast with. */ public function with(Arrayable|array $payload): static { $this->payload = $payload instanceof Arrayable ? $payload->toArray() : collect($payload)->map( fn ($p) => $p instanceof Arrayable ? $p->toArray() : $p )->all(); return $this; } /** * Broadcast the event to everyone except the current user. */ public function toOthers(): static { $this->includeCurrentUser = false; return $this; } /** * Broadcast the event. */ public function sendNow(): void { $this->shouldBroadcastNow = true; $this->send(); } /** * Broadcast the event. */ public function send(): void { $broadcast = broadcast($this)->via($this->connection); if (! $this->includeCurrentUser) { $broadcast->toOthers(); } } /** * Get the name the event should broadcast as. */ public function broadcastAs(): string { return $this->name ?: class_basename($this); } /** * Get the payload the event should broadcast with. * * @return array */ public function broadcastWith(): array { return $this->payload; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|\Illuminate\Broadcasting\Channel[]|string[]|string */ public function broadcastOn(): Channel|array { return $this->channels; } /** * Determine if the event should be broadcast synchronously. */ public function shouldBroadcastNow(): bool { return $this->shouldBroadcastNow; } }