LaravelDaily / laravel-invoices

Laravel package to generate PDF invoices from various customizable parameters
GNU General Public License v3.0
1.4k stars 304 forks source link

Own template pdf #116

Closed rasim123456 closed 3 years ago

rasim123456 commented 3 years ago

Can i get the detailed information about how to make pdf of own template...I tried the way given in this project but an error is occuring about buyer is not defined...

mc0de commented 3 years ago

@rasim123456 check how default template is made here: https://github.com/LaravelDaily/laravel-invoices/blob/master/resources/views/templates/default.blade.php

also make sure to use example snippets in readme: https://github.com/LaravelDaily/laravel-invoices/blob/master/README.md

and of course you can search for similar answers in previous issues, for example: https://github.com/LaravelDaily/laravel-invoices/issues/30

rasim123456 commented 3 years ago

@mc0de Thanks for your reply..! Now i am implementing your advance usage given in project but it give me the error. Error Class 'NumberFormatter' not found (View: C:\xampp-new\htdocs\Laravel\sayas_market\resources\views\vendor\invoices\templates\default.blade.php)

PovilasKorop commented 3 years ago

@rasim123456 search for that error in closed issues, it was discussed before

rasim123456 commented 3 years ago

@PovilasKorop I saw that issue. But the person who answered was also not sure how the issue resolved. I follow his steps but it still does't works for me and giving me the same error.