title: Events don't work laravel, in the queue, the process is in progress and gives an error
body: <p>Created an event, it works locally, uploaded it to the server stopped working.</p>
  <p>[2021-04-02 14:26:51] local.ERROR: Class 'Redis' not found {&quot;exception&quot;:&quot;[object] (Error(code: 0): Class 'Redis' not found at /vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:75)
  [stacktrace]</p>
  <p>how to connect Redis?</p>
  <p>PrivatMessageEvent.php</p>
  <pre><code>&lt;?php
  
  namespace App\Events;
  
  use Illuminate\Broadcasting\Channel;
  use Illuminate\Broadcasting\InteractsWithSockets;
  use Illuminate\Broadcasting\PresenceChannel;
  use Illuminate\Broadcasting\PrivateChannel;
  use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  use Illuminate\Foundation\Events\Dispatchable;
  use Illuminate\Queue\SerializesModels;
  
  class PrivatMessageEvent implements ShouldBroadcast
  {
      use Dispatchable, 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 \Illuminate\Broadcasting\Channel|array
       */
      public function broadcastOn()
      {
          return new Channel('private-channel');
      }
  }
  </code></pre>
  <p>When I start the queue, I can see that this event is in progress but gives an Failed.</p>
  <p>Script blade template</p>
  <pre><code> socket.on(&quot;private-channel:App\\Events\\PrivatMessageEvent&quot;, function (message) {
                  appendMessageToReceiver(message);
              });
  </code></pre>
  <p>config\bd</p>
  <pre><code>   'redis' =&gt; [
          'client' =&gt; env('REDIS_CLIENT', 'phpredis'),
          'cluster' =&gt; false,
          'default' =&gt; [
              'host' =&gt; env('REDIS_HOST', '127.0.0.1'),
              'database' =&gt; 0,
              'port' =&gt; env('REDIS_PORT', '6379'),
          ]
      ]
  </code></pre>