From efe580da8c2a6313aa94df73e8f48b170cae7f5c Mon Sep 17 00:00:00 2001 From: Quentin Gabriele Date: Thu, 7 Dec 2023 16:49:56 +0100 Subject: [PATCH] auto denormalize on creation --- src/Invoice.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Invoice.php b/src/Invoice.php index 997e833..5bf77e0 100644 --- a/src/Invoice.php +++ b/src/Invoice.php @@ -91,6 +91,8 @@ public static function booted() $invoice->parseSerialNumber() ); } + + $invoice->denormalize(); }); static::updating(function (Invoice $invoice) {