title: How to fix Class 'PDF' not found in laravel
body: <p>Encountered the following error in My Laravel app:</p>
  
  <blockquote>
    <p>FatalErrorException in CollaboPDFController.php line 14: Class 'PDF' not found</p>
  </blockquote>
  
  <p>This is my <strong>CollaboPDFController.php</strong>:</p>
  
  <pre><code>&lt;?php
  
    namespace App\Http\Controllers;
  
    use Illuminate\Http\Request;
  
    use App\Http\Requests;
    use App\Http\Controllers\Controller;
    use PDF;
  
    class CollaboPDFController extends Controller
    {
        public function getPDF(){
          $pdf = PDF::loadView('customer.customer'); //line 14
          return $pdf-&gt;download('customer.customer');
        }
        //
    }
  </code></pre>
  
  <p>How I can fix this?</p>