for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MallardDuck\DynamicEcho\Traits;
use Illuminate\Broadcasting\PrivateChannel;
trait PrivateDynamicEchoChannel
{
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
*/
public function broadcastOn()
return new PrivateChannel('App.Models.User.' . $this->userId);
}