REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 3.32 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Broadcasting/AnonymousEvent.php
Text
Base64
<?php namespace Illuminate\Broadcasting; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Support\Arr; use Illuminate\Support\Collection; class AnonymousEvent implements ShouldBroadcast { use Dispatchable, InteractsWithBroadcasting, InteractsWithSockets; /** * The connection the event should be broadcast on. */ protected ?string $connection = null; /** * The name the event should be broadcast as. */ protected ?string $name = null; /** * The payload the event should be broadcast with. */ protected array $payload = []; /** * Should the broadcast include the current user. */ protected bool $includeCurrentUser = true; /** * Indicates if the event should be broadcast synchronously. */ protected bool $shouldBroadcastNow = false; /** * Create a new anonymous broadcastable event instance. * * @return void */ public function __construct(protected Channel|array|string $channels) { $this->channels = 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() : (new Collection($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<string, mixed> */ 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; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Broadcasters
DIR
-
drwxrwxrwx
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AnonymousEvent.php
3.32 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BroadcastController.php
1.22 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BroadcastEvent.php
4.77 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BroadcastException.php
127 B
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BroadcastManager.php
13.21 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
BroadcastServiceProvider.php
1.11 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Channel.php
727 B
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
composer.json
1.27 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
EncryptedPrivateChannel.php
311 B
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InteractsWithBroadcasting.php
852 B
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InteractsWithSockets.php
669 B
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE.md
1.05 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PendingBroadcast.php
1.47 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PresenceChannel.php
294 B
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PrivateChannel.php
498 B
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
UniqueBroadcastEvent.php
1.50 KB
lrw-rw-rw-
2025-09-17 06:52:59
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).