PHP code example of limenet / laravel-pdf
1. Go to this page and download the library: Download limenet/laravel-pdf library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
limenet / laravel-pdf example snippets
// app/Console/Kernel.php
$schedule->command(\Limenet\LaravelPdf\Commands\Cleanup::class)->hourly();
use Limenet\LaravelPdf\Pdf;
return (new Pdf(
view: 'hello-world',
))->response();
bash
php artisan vendor:publish --tag="laravel-pdf-config"