Do you add facade to config/app.php
Dec 7, 2016
11
Level 4
Class 'PDF' not found in domPDF
enconted following error in My Laravel app
FatalErrorException in CollaboPDFController.php line 14:
Class 'PDF' not found
this is My CollaboPDFController.php
<?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->download('customer.customer');
}
//
}
I have customer blade file in customer folder in view directoty how can fix this??
Level 51
It looks like domPDF is not installed ... which version of laravel do you use ...
maybe if you install that package again
1 like
Please or to participate in this conversation.