public function queue($event)
    {
        $connection = $event instanceof ShouldBroadcastNow ? 'sync' : null;

        if (is_null($connection) && isset($event->connection)) {
            $connection = $event->connection;
        }

        $queue = null;

        if (method_exists($event, 'broadcastQueue')) {
            $queue = $event->broadcastQueue();
        } elseif (isset($event->broadcastQueue)) {
            $queue = $event->broadcastQueue;
        } elseif (isset($event->queue)) {
            $queue = $event->queue;
        }

        $this->container->make('queue')->connection($connection)->pushOn(
            $queue, new BroadcastEvent(clone $event)
        );
    }
public function queue($event)
    {
        $connection = $event instanceof ShouldBroadcastNow ? 'sync' : null;

        if (is_null($connection) && isset($event->connection)) {
            $connection = $event->connection;
        }

        $queue = null;

        if (method_exists($event, 'broadcastQueue')) {
            $queue = $event->broadcastQueue();
        } elseif (isset($event->broadcastQueue)) {
            $queue = $event->broadcastQueue;
        } elseif (isset($event->queue)) {
            $queue = $event->queue;
        }

        $this->container->make('queue')->connection($connection)->pushOn(
            $queue, new BroadcastEvent(clone $event)
        );
    }
public function queue ( $ event ) { $ connection = $ event instanceof ShouldBroadcastNow ? 'sync' : null ; if ( is_null ( $ connection ) && isset ( $ event -> connection ) ) { $ connection = $ event -> connection ; } $ queue = null ; if ( method_exists ( $ event , 'broadcastQueue' ) ) { $ queue = $ event -> broadcastQueue ( ) ; } elseif ( isset ( $ event -> broadcastQueue ) ) { $ queue = $ event -> broadcastQueue ; } elseif ( isset ( $ event -> queue ) ) { $ queue = $ event -> queue ; } $ this -> container -> make ( 'queue' ) -> connection ( $ connection ) -> pushOn ( $ queue , new BroadcastEvent ( clone $ event ) ) ; }
Queue the given event for broadcast.

@param  mixed  $event
@return void
Queue the given event for broadcast .