From 63acad405db1e53d05784bd820d8d9b7ee8cef8f Mon Sep 17 00:00:00 2001 From: Travis Austin <1134334+travisaustin@users.noreply.github.com> Date: Sun, 3 Nov 2024 21:00:18 -0800 Subject: [PATCH] Update Model.php Fixed #33 --- src/Support/Model.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Support/Model.php b/src/Support/Model.php index c273e8b..a9e9b04 100644 --- a/src/Support/Model.php +++ b/src/Support/Model.php @@ -101,6 +101,15 @@ abstract class Model implements Arrayable, ArrayAccess, Jsonable, JsonSerializab */ protected bool $timestampsInMilliseconds = true; + /** + * Indicates if the model was inserted during the object's lifecycle. + * + * This is here for Laravel 9+ compatibility, even though we never use this property. + * + * @var bool + */ + public $wasRecentlyCreated = false; + /** * The name of the "created at" column. *