Inheritance: extends Illuminate\Database\Eloquent\Model
Ejemplo n.º 1
0
 public function transmission(Message $message)
 {
     if (!$this->pusher) {
         return false;
     }
     $sender = $message->sender->toArray();
     $messageArray = $message->toArray();
     $messageArray['sender'] = $sender;
     $this->dispatch(new Webcast($messageArray));
 }
Ejemplo n.º 2
0
 public function deleteMessages($conversationId)
 {
     $delete = Message::where('conversation_id', $conversationId)->delete();
     if ($delete) {
         return true;
     }
     return false;
 }