File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Broadcasting
Upload
[..]
AnonymousEvent.php (3.3 KB)
Edit
Rename
Del
BroadcastEvent.php (5.91 KB)
Edit
Rename
Del
BroadcastException.php (127 B)
Edit
Rename
Del
BroadcastManager.php (15.38 KB)
Edit
Rename
Del
Broadcasters/
Rename
Del
Channel.php (707 B)
Edit
Rename
Del
EncryptedPrivateChannel.php (291 B)
Edit
Rename
Del
FakePendingBroadcast.php (754 B)
Edit
Rename
Del
InteractsWithBroadcasting.php (931 B)
Edit
Rename
Del
InteractsWithSockets.php (669 B)
Edit
Rename
Del
LICENSE.md (1.05 KB)
Edit
Rename
Del
PendingBroadcast.php (1.51 KB)
Edit
Rename
Del
PresenceChannel.php (274 B)
Edit
Rename
Del
PrivateChannel.php (478 B)
Edit
Rename
Del
UniqueBroadcastEvent.php (1.43 KB)
Edit
Rename
Del
composer.json (1.28 KB)
Edit
Rename
Del
Edit: InteractsWithSockets.php
<?php namespace Illuminate\Broadcasting; use Illuminate\Support\Facades\Broadcast; trait InteractsWithSockets { /** * The socket ID for the user that raised the event. * * @var string|null */ public $socket; /** * Exclude the current user from receiving the broadcast. * * @return $this */ public function dontBroadcastToCurrentUser() { $this->socket = Broadcast::socket(); return $this; } /** * Broadcast the event to everyone. * * @return $this */ public function broadcastToEveryone() { $this->socket = null; return $this; } }
Simpan