DEV Community

Cover image for Convert html to pdf Laravel 8, laravel-dompdf, download pdf file step by step.
seaklong
seaklong

Posted on

Convert html to pdf Laravel 8, laravel-dompdf, download pdf file step by step.

Convert html to pdf Laravel 8, laravel-dompdf, download pdf file step by step.

We are explain with all code step by step.
Step : 1 Install package
First we need to install package in our laravel application using following command.
composer require barryvdh/laravel-dompdf
Step : 2 Configure package
After install pdf package for laravel then we must be configure it. just following littel thing. oprn your config/app.php file and set following value for providers array and aliases array.
Step : 3 Create route
Step : 4 Create controller
Step : 5 Create view

In this video can help you.Please click this link Video .

Here is the code on my Github or My Youtube Channel .
You can leave a comment, suggestion for improvement or corrections, don’t forget to follow me.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay