Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.218.99.99
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
musonza /
chat /
src /
Eventing /
Delete
Unzip
Name
Size
Permission
Date
Action
AllParticipantsClearedConversation.php
269
B
-rw-r--r--
2021-02-02 18:21
AllParticipantsDeletedMessage.php
248
B
-rw-r--r--
2021-02-02 18:21
ConversationStarted.php
309
B
-rw-r--r--
2021-02-02 18:21
Event.php
57
B
-rw-r--r--
2021-02-02 18:21
EventDispatcher.php
669
B
-rw-r--r--
2021-02-02 18:21
EventGenerator.php
339
B
-rw-r--r--
2021-02-02 18:21
MessageWasSent.php
1.31
KB
-rw-r--r--
2021-02-02 18:21
ParticipantsJoined.php
394
B
-rw-r--r--
2021-02-02 18:21
ParticipantsLeft.php
392
B
-rw-r--r--
2021-02-02 18:21
Save
Rename
<?php namespace Musonza\Chat\Eventing; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; use Musonza\Chat\Models\Message; class MessageWasSent extends Event implements ShouldBroadcast { use Dispatchable; use InteractsWithSockets; use SerializesModels; public $message; public function __construct(Message $message) { $this->message = $message; } /** * Get the channels the event should broadcast on. * * @return Channel */ public function broadcastOn() { return new PrivateChannel('mc-chat-conversation.'.$this->message->conversation_id); } public function broadcastWith() { return [ 'message' => [ 'id' => $this->message->getKey(), 'body' => $this->message->body, 'conversation_id' => $this->message->conversation_id, 'type' => $this->message->type, 'created_at' => $this->message->created_at, 'sender' => $this->message->sender, ], ]; } }