I have a little problem with my project that I don’t know how to fix it. I use a dompdf to generate pdf. everything went well in my local but after I host it this error occur: Class "BarryvdhDomPDFFacadePDF" Not Found
This is how I call it in my controller:
use BarryvdhDomPDFFacadePDF;
and how I use it:
public function generatecustPDF()
{
$customers = Customer::get();
$data = [
'title' => 'Customer List',
'date' => date('d/m/Y'),
'customers' => $customers
];
$pdf = PDF::loadView('Master.Customer.printcustomer', $data);
return $pdf->stream("Customer List.pdf", array("Attachment" => false));
}