title: Class 'Mpdf\Mpdf' not found (Laravel Job)
body: <p>I have the following code for a laravel Job. It works just fine when in the Controller, but once I transferred it to a job, it fails with the error</p>
  
  <p><code>Class 'Mpdf\Mpdf' not found</code></p>
  
  <p>I have imported the class at the top of the job as I did with the controller so can't figure out why it can't find it.</p>
  
  <pre><code>&lt;?php
  
      namespace App\Jobs;
  
      use Mpdf\Mpdf;
      use App\DocumentRequest;
      use Illuminate\Bus\Queueable;
      use Intervention\Image\Facades\Image;
      use Illuminate\Queue\SerializesModels;
      use Illuminate\Support\Facades\Storage;
      use Illuminate\Queue\InteractsWithQueue;
      use Illuminate\Contracts\Queue\ShouldQueue;
      use Illuminate\Foundation\Bus\Dispatchable;
  
      class ProcessUploads implements ShouldQueue
      {
  
      use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
  
      protected $uuid;
  
      public function __construct($uuid)
      {
          $this-&gt;uuid = $uuid;
      }
  
  
      public function handle()
      {
          $mpdf =  new Mpdf();
  
          $mpdf-&gt;WriteHTML($this-&gt;uuid);
  
          $mpdf-&gt;Output('Output.pdf', 'F');
      }
  }
  </code></pre>