Skip to content

Commit 7aaf464

Browse files
committed
Merge branch 'develop' into 2.x
2 parents 8425593 + 25f61f0 commit 7aaf464

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,22 @@ $item = Invoice::makeItem('Your service or product title')->pricePerUnit(9.99);
217217
return Invoice::make()->buyer($customer)->addItem($item)->stream();
218218
```
219219

220+
## Templates
221+
222+
After publishing assets you can modify or make your own template for invoices.
223+
224+
Templates are stored in the `resources/views/vendor/invoices/templates` directory. There you will find `default.blade.php` template which is used by default.
225+
226+
You can specify which template to use by calling `template` method on Invoice object.
227+
228+
For example if you have `resources/views/vendor/invoices/templates/my_company.blade.php` it should look like this:
229+
230+
```php
231+
Invoice::make('receipt')->template('my_company');
232+
```
233+
234+
Too see how things work in a template you can view `default.blade.php` as an example.
235+
220236
## Config
221237

222238
``` php

0 commit comments

Comments
 (0)