From 8336df2f479270f68fd53b19e9b3cfd4a90378a2 Mon Sep 17 00:00:00 2001 From: Tiago Fernandes Date: Sat, 24 Jun 2023 17:31:46 +0100 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5169046..11ab607 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,9 @@ $item->delete(); #### Invoice lifecycle: ```php -use Squarebit\InvoiceXpress\API\Data\PdfData;$invoice = (new IxInvoice()) +use Squarebit\InvoiceXpress\API\Data\PdfData; + +$invoice = (new IxInvoice()) ->setClient(IxClient::findOrFail(1234)) // set the invoice's client ->addItem(IxItem::find(2345)) // add an IxItem model ->addItem(ItemData::from([....])) // you can also add from an ItemData @@ -183,7 +185,7 @@ $invoiceEndpoint->sendByEmail( EmailData::from([ 'client_data' => EmailClientData::from([ 'email' => 'someone@somewhere.com' - ]) + ]), 'subject' => '...', 'body' => '...', 'cc' => '...',