Lewati ke konten utama

Laravel PDF

Package yang bisa membuat PDF:

barryvdh/laravel-dompdf​

composer require barryvdh/laravel-dompdf

Issue: public image dompdf not loaded (Laravel) Solution: gunakan kode berikut pada attribute src

data:image/png;base64,{{ base64_encode(file_get_contents(public_path('your image path'))) }}