title: laravel PresenceChannel joining not working
body: <p>This is client side js</p>
  
  <pre><code>  let user_id = $('meta[name="user-id"]').attr('content');
    let channel = Echo.join('user-' + user_id);
      channel.here((user) =&gt; {
        console.log('Here');
        console.log(user);
      })
      .joining((user) =&gt; {
          console.log('joining');
          console.log(user);
      })
      .leaving((user) =&gt; {
          console.log('leaving');
          console.log(user);
      });
  </code></pre>
  
  <p>in laravel echo server shows this error    </p>
  
  <pre><code> [11:48:15 AM] - wLO1jq5fW9p_8lOnAAAS left channel: presence-user-1 (transport close)
  (node:24532) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined or null to object
      at /usr/local/lib/node_modules/laravel-echo-server/dist/channels/presence-channel.js:78:21
      at &lt;anonymous&gt;
      at process._tickCallback (internal/process/next_tick.js:188:7)
  (node:24532) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 18)
  [11:48:17 AM] - Preparing authentication request to: http://asapp.buginsoft.kz
  [11:48:17 AM] - Sending auth request to: http://asapp.buginsoft.kz/broadcasting/auth
  
  [11:48:17 AM] - W3CiOs736gv0o0OwAAAT authenticated for: presence-user-1
  Unable to join channel. Member data for presence channel missing
  [11:48:17 AM] - W3CiOs736gv0o0OwAAAT joined channel: presence-user-1
  </code></pre>
  
  <p>This is my MessageSent event</p>
  
  <pre><code>public function __construct($message,$id)
  {
      $this-&gt;message = $message;
      $this-&gt;id = $id;
  }
  
  public function broadcastOn()
  {
      return new PresenceChannel('user-'.$this-&gt;id);
  }
  </code></pre>
  
  <p>This is my console.php</p>
  
  <pre><code>Broadcast::channel('user-{id}', function ($user, $id) {
      return (int) $user-&gt;id === (int) $id;
  });
  </code></pre>
  
  <p>But my console is clear and not showing logs from joining etc</p>