laravelpdf icon indicating copy to clipboard operation
laravelpdf copied to clipboard

Class 'Inline\PDF\PDF' not found

Open kinare opened this issue 7 years ago • 2 comments

FatalErrorException in PDF.php line 7: Class 'Inline\PDF\PDF' not found

I have followed the instruction for setting up with laravel. I am using laravel 5.2. when i try to generate the pdf i get the following error

namespace App\Http\Controllers;
use App;
use PDF;
class eventBookingController extends Controller{
public function generateInvoicePdf($invoice)
    {
       // some code
$pdf = PDF::loadView('events.invoice', $invoice);
return $pdf->download('invoice.pdf');
}
}

kinare avatar Mar 30 '17 08:03 kinare

even I am facing the same issue and also i have posted in stackoverflow http://stackoverflow.com/questions/43118689/class-inline-pdf-pdf-not-found-in-laravel-using-wemersonjanuario-laravelpdf-pa

sharathm89 avatar Mar 30 '17 13:03 sharathm89

Hi. sorry for this. I have changed the namespace to Novanti instead of Inline, please switch to 1.1.* version and change alias an provider namespace to Novanti. I have also updated the README.md do better doc this. Let me know if works. Thank you for reporting

wemersonjanuario avatar Mar 30 '17 13:03 wemersonjanuario