app/Events/BroadcastToListenersEvent.php
/**
     * Get the channels the event should broadcast on.
     *
     * @return array
     */
Get the channels the event should broadcast on.
@return array
Get the channels the event should broadcast on . @return array
public function broadcastOn()
    {
        $me = auth()->user();
        $tokens = \Redis::sMembers($this->getUniqueKey());
        if (($key = array_search($me->socket_token, $tokens)) !== false) {
            unset($tokens[$key]);
        }
        return $tokens;
    }
public function broadcastOn ( ) { $ me = auth ( ) -> user ( ) ; $ tokens = \ Redis :: sMembers ( $ this -> getUniqueKey ( ) ) ; if ( ( $ key = array_search ( $ me -> socket_token , $ tokens ) ) !== false ) { unset ( $ tokens [ $ key ] ) ; } return $ tokens ; }
Get the channels the event should broadcast on.
Get the channels the event should broadcast on .
/** @var User $me */ // Remove sender user from from the list