PDF class not found in dompdf library

The question: use IlluminateHttpRequest; use PDF; class PDFController extends Controller { /** * Display a listing of the resource. * * @return IlluminateHttpResponse */ public function generatePDF() { $data = [ ‘title’ => ‘hello world’, ‘date’ => date(‘m/d/Y’) ]; $pdf = PDF::loadView(‘myPDF’, $data); return $pdf->download(‘itsolutionstuff.pdf’); } } The Solutions: Below are the methods you can … Read more