Back to Blog
Invoicer invoicee7/25/2023 ![]() ![]() Required Buyer Home Delivery Cost : numeric Add Itemsĭescription: Add the items buyer/user bought, eg. Required Buyer Shipping Cost : numeric Set Home Delivery Costĭescription: Set the buyer/user Home Delivery cost. Required Buyer Shipping Address : string Set Shipping Costĭescription: Set the buyer/user shipping cost. Optional Buyer Phone : string Set Shipping Addressĭescription: Set the buyer/user shipping address. Setup Buyer Informationsĭescription: Set the buyer/user information. Optional Issue Date : string : By default it will take current date. setupInvoice( $invoice_no, $issue_date = null) Available Methods Setup Invoiceĭescription: Setup the invoice. NOTE This is the minimalist basic need to generate invoice PDF.Įxample PDF Have look at this example pdf generated.Įxample PDF (v2) Have look at this advanced example (v2) pdf generated. $invoice-> setPaymentState( 'UNPAID', 'important', 'Pay before 24-02-2020') > addItem( 'Bigger Abul Tabul Product Name This Time', 1, 'Pc', 550.52, 10, 10) > setShippingAddr( '0/3B Abul Tabul Conference Road, DG Street, China') Peek a look at config/invoicer.phpĬonfigure your configuration file, the required details for the values are documentated as commented in config/invoicer.php file.Īfter done configuraing php artisan config:cache Usage Generate Invoiceįrom your controller: use DGvai\ Invoicer\ Invoicer Ĭlass InvoiceController extends Controller ![]() The environment Values are all your choice. You can update your app environment (.env) (If needed). Publish configuration file php artisan vendor:publish -provider= "DGvai\Invoicer\InvoicerServiceProvider " Setup and configure You can install the package via composer: composer require dgvai/laravel-invoicer Publish Configuration Invoicer - Invoice Generator Package for Laravel.This package is built for Invoice Management and Generation for Laravel 5.5 , 6.x, 7.x (not tested for lower versions) Contents ![]()
0 Comments
Read More
Leave a Reply. |