title: Laravel 5.3 not sending Events to pusher
body: <p>I'm using laravel 5.3 for my website. I needed to add real time functionality to my app so I used pusher. but the problem is when the event has been triggered nothing happened and no events sent to pusher.</p>
  
  <p>my pusher configuration in broadcasting.php file :</p>
  
  <pre><code> 'pusher' =&gt; [
          'driver' =&gt; 'pusher',
          'key' =&gt; env('PUSHER_KEY'),
          'secret' =&gt; env('PUSHER_SECRET'),
          'app_id' =&gt; env('PUSHER_APP_ID'),
          'options' =&gt; [
              'cluster' =&gt; 'eu',
              'encrypted'=&gt;true
          ],
      ],
  </code></pre>
  
  <p>my event class:</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\Broadcasting\InteractsWithSockets;
  use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  
   class ChatEvent implements ShouldBroadcast
    {
     use InteractsWithSockets, SerializesModels;
  
  public $data;
  
  /**
   * Create a new event instance.
   *
   * @return void
   */
  public function __construct($data)
  {
      $this-&gt;data = $data;
  
  }
  
  /**
   * Get the channels the event should broadcast on.
   *
   * @return Channel|array
   */
  public function broadcastOn()
  {
  
      // return new PrivateChannel('test-channel');
      return ['test-channel'];
  }
  </code></pre>
  
  <p>and my pusher javascript code:</p>
  
  <pre><code> Pusher.logToConsole = true;
  
  var pusher = new Pusher('pusher_id', {
    cluster:'eu',
    encrypted: true
  });
  
  var channel = pusher.subscribe('test-channel');
  channel.bind('App\\Events\\ChatEvent', function(data) {
      console.log(data);
    alert(data);
  });
  </code></pre>