Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Convert HTML to Pdf in laravel.

Step:1

Step:II make controller
php artisan make:controller PdfController

Step:III Install Package
composer require barryvdh/laravel-dompdf

Step:IV open your config/app.php put this code after Providers
Barryvdh\DomPDF\ServiceProvider::class,
Step:V open your config/app.php put this code after aliases
‘PDF’ => Barryvdh\DomPDF\Facade::class,


Step:VI Write this code in the PdfController

Step:VII resources/view/welcome.php
open welcome.php page and paste this code.

Step:VIII route/web.php
open this web.php and paste this code
Route::get(‘pdfconveter’,’PdfController@againpdf’);

Step:IX– run this command
php artisan serve

Step:X write this url in the browser. http://127.0.0.1:8000/