Skip to main content

Posts

Showing posts from April, 2020

laravel snappy pdf

Install this: https://wkhtmltopdf.org/downloads.html then install this two, $ composer require h4cc/wkhtmltopdf-i386 0.12.x $ composer require h4cc/wkhtmltoimage-i386 0.12.x Then, composer require barryvdh/laravel-snappy Then, php artisan vendor:publish --provider= " Barryvdh\Snappy\ServiceProvider " And Now, copy the wkhtmltopdf.exe and wkhtmltoimage.exe files to the above h4cc folder which is present inside vendor folder of laravel. and set the path to snappy.php file-> see the snappy.php file which is given below: [NOTE: see the code which i've commented out. You can run & check every line of code] Route :: get ( '/' ,  function  () {      $data  = [         [              'name' => 'Audi' ,              'logo' => 'audi.jpg' ...