Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'Inline\PDF\PDF' not found #14

Open
kinare opened this issue Mar 30, 2017 · 2 comments
Open

Class 'Inline\PDF\PDF' not found #14

kinare opened this issue Mar 30, 2017 · 2 comments

Comments

@kinare
Copy link

kinare commented Mar 30, 2017

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');
}
}
@sharathm89
Copy link

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

@wemersonjanuario
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants