Skip to content

Commit 8336df2

Browse files
committed
Update README.md
1 parent 90db840 commit 8336df2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ $item->delete();
9191
#### Invoice lifecycle:
9292

9393
```php
94-
use Squarebit\InvoiceXpress\API\Data\PdfData;$invoice = (new IxInvoice())
94+
use Squarebit\InvoiceXpress\API\Data\PdfData;
95+
96+
$invoice = (new IxInvoice())
9597
->setClient(IxClient::findOrFail(1234)) // set the invoice's client
9698
->addItem(IxItem::find(2345)) // add an IxItem model
9799
->addItem(ItemData::from([....])) // you can also add from an ItemData
@@ -183,7 +185,7 @@ $invoiceEndpoint->sendByEmail(
183185
EmailData::from([
184186
'client_data' => EmailClientData::from([
185187
'email' => '[email protected]'
186-
])
188+
]),
187189
'subject' => '...',
188190
'body' => '...',
189191
'cc' => '...',

0 commit comments

Comments
 (0)