app/Events/BroadcastToUserEvent.php
/**
     * Get the data to broadcast.
     *
     * @return array
     */
Get the data to broadcast.
@return array
Get the data to broadcast . @return array
public function broadcastWith()
    {
        return [
            'event' => $this->getName(),
            'data'  => $this->getData(),
        ];
    }
public function broadcastWith ( ) { return [ 'event' => $ this -> getName ( ) , 'data' => $ this -> getData ( ) , ] ; }
Get the data to broadcast.
Get the data to broadcast .