title: Laravel didnt find PHP Library RdKafka
body: <p>I'm getting </p>
  
  <pre><code> Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
      Class 'RdKafka\Producer' not found 
  </code></pre>
  
  <p>But the library is loaded at php.ini, when i try with php artisan tinker, it works, but doesn't work in the web application</p>
  
  <pre><code>&lt;?php
  
  Route::get('/', function () {
      $topicConf = new RdKafka\TopicConf();
      $topicConf-&gt;set('auto.offset.reset', 'largest');
  
      $conf = new RdKafka\Conf();
      $conf-&gt;set('group.id', 'php-pubsub');
      $conf-&gt;set('metadata.broker.list', '127.0.0.1');
      $conf-&gt;set('enable.auto.commit', 'false');
      $conf-&gt;set('offset.store.method', 'broker');
      $conf-&gt;set('socket.blocking.max.ms', 50);
      $conf-&gt;setDefaultTopicConf($topicConf);
  });
  </code></pre>