title: How to fix 419 error with broadcasting auth
body: <p>In my Laravel Framework 5.7 / Vuejs 2.6  I use jwt.auth and installing pusher </p>
  
  <p>I check xsfr token for my page <a href="https://imgur.com/a/CveJ6jh" rel="nofollow noreferrer">https://imgur.com/a/CveJ6jh</a> but I got 419 error in <a href="http://local/broadcasting/auth" rel="nofollow noreferrer">http://local/broadcasting/auth</a> request and open responce of this url I see page expired message.<br>
  In app/Events/NewMessage.php :</p>
  
  <pre><code>&lt;?php
  
  namespace App\Events;
  
  use Illuminate\Broadcasting\Channel;
  use Illuminate\Queue\SerializesModels;
  use Illuminate\Broadcasting\PrivateChannel;
  use Illuminate\Broadcasting\PresenceChannel;
  use Illuminate\Foundation\Events\Dispatchable;
  use Illuminate\Broadcasting\InteractsWithSockets;
  use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  use App\Message;
  
  class NewMessage
  {
      use Dispatchable, InteractsWithSockets, SerializesModels;
  
      public $message;
      /**
       * Create a new event instance.
       *
       * @return void
       */
      public function __construct(Message $message)
      {
          $this-&gt;message= $message;
      }
  
      /**
       * Get the channels the event should broadcast on.
       *
       * @return \Illuminate\Broadcasting\Channel|array
       */
      public function broadcastOn()
      {
          return new PrivateChannel('messages.'.$this-&gt;message-&gt;to);
      }
      public function broadcastWith()
      {
          return ['messages' =&gt; $this-&gt;message];
      }
  
  }
  </code></pre>
  
  <p>In routes/channels.php : 
  
  
  <pre><code>Broadcast::channel('messages.{id}', function ($user, $id) {
      dd($user-&gt;id, $id);
      return (int) $user-&gt;id === (int) $id;
  });
  </code></pre>
  
  <p>But I do not see any debugging info from above.</p>
  
  <p>I used pusher parameters from my prior app. I think they must be ok. Otherwise I would have different error ?</p>
  
  <p>and in vue component : </p>
  
  <pre><code>mounted() {
      Echo.private(`messages.${this.customerRow.id}`)
          .listen('NewMessage', (e) =&gt; {
              this.hanleIncoming(e.message);
          });
  </code></pre>
  
  <p>What did I miss ?</p>
  
  <p>Thanks!</p>