Skip to content

Commit

Permalink
auto denormalize on creation
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Dec 7, 2023
1 parent 4ea4573 commit efe580d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public static function booted()
$invoice->parseSerialNumber()
);
}

$invoice->denormalize();
});

static::updating(function (Invoice $invoice) {
Expand Down

0 comments on commit efe580d

Please sign in to comment.