Skip to content

Commit 1a0a885

Browse files
committed
added default status to config and set it to invoice _construct method
1 parent 7e33f83 commit 1a0a885

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config/invoices.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565

6666
'disk' => 'local',
6767

68+
'status' => 'Due',
69+
6870
'seller' => [
6971
/**
7072
* Class used in templates via $invoice->seller

src/Invoice.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public function __construct($name = 'Invoice')
160160
$this->items = Collection::make([]);
161161
$this->template = 'default';
162162

163+
$this->status = config('invoices.status');
164+
163165
// Date
164166
$this->date = Carbon::now();
165167
$this->date_format = config('invoices.date.format');

0 commit comments

Comments
 (0)