title: Uncaught exception 'ReflectionException' with message 'Class config does not exist' in vendor\laravel\framework\src\Illuminate\Container\Container.php
body: <blockquote>
    <p>Fatal error: Uncaught exception 'ReflectionException' with message 'Class  config does not exist' in  D:\laragon\www\project\vendor\laravel\framework\src\Illuminate\Container\Container.php:738</p>
  </blockquote>
  
  <p>I am trying to use <code>dompdf</code> in laravel and according to that documentation.</p>
  
  <p>Lumen:</p>
  
  <p>After updating composer add the following lines to register provider in bootstrap/app.php</p>
  
  <pre><code>$app-&gt;register(\Barryvdh\DomPDF\ServiceProvider::class);
  </code></pre>
  
  <p>To change the configuration, copy the config file to your config folder and enable it in bootstrap/app.php:</p>
  
  <pre><code>$app-&gt;configure('dompdf');
  </code></pre>
  
  <p>and i add that code in bootstrap/app.php like this </p>
  
  <pre><code>$app-&gt;register(\Barryvdh\DomPDF\ServiceProvider::class);
  $app-&gt;configure('dompdf');
  </code></pre>
  
  <p>but i am geting that error.</p>