Support the ongoing development of Laravel.io →
Installation Configuration

Hello Everyone,

I am attempting to create a PDF from a view. I have read that the Barryvdh/dompdf is one of the best and I have been attempting to install it now for hours with no luck. Any help at all would be greatly appreciated. Please keep in mind that this is my first app on Laravel. Really enjoying it except when i run into problems like this one :).

Composer: Composer

Service Providers: Service Providers

Facades: Facades

Bootstrap/App.config Bootstrap App Config

My Result when I visit the home page of the app: Bootstrap App Config

Thanks again for any help at all...If I left out any important details that may help please let me know.

Last updated 3 years ago.
0

So I ended up getting it to work by following this tutorial in Spanish using Google Translate!! Generar PDFs en Laravel 5.1 con DomPdf

I am running L5.2 and this is for L5.1 but I found that if I do not add this line: $app->register(\Barryvdh\DomPDF\ServiceProvider::class); to bootstrap/app.php then everything works.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

AndruNoah andrunoah Joined 30 Mar 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.