From f736540c3b0017952940a80fa3c13a615fec511f Mon Sep 17 00:00:00 2001 From: Jimmy Puckett Date: Mon, 8 Apr 2024 08:04:52 -0400 Subject: [PATCH 1/3] Allow Laravel 11 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 84732df..f6f06b4 100644 --- a/composer.json +++ b/composer.json @@ -22,8 +22,8 @@ "php": "^8.0.2", "ext-json": "*", "guzzlehttp/guzzle": "^7.0", - "laravel/framework": "^9.19|^10", - "nesbot/carbon": "^2.62.1" + "laravel/framework": "^9.19|^10|^11", + "nesbot/carbon": "^2.62.1|^3" }, "require-dev": { "laravel/pint": "^1.4", From 9fbace5f85b889869debbf09e94525b8e198a773 Mon Sep 17 00:00:00 2001 From: Jimmy Puckett Date: Mon, 8 Apr 2024 08:05:17 -0400 Subject: [PATCH 2/3] Deal with strict properties in model --- src/Support/Model.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Support/Model.php b/src/Support/Model.php index 6de3670..c273e8b 100644 --- a/src/Support/Model.php +++ b/src/Support/Model.php @@ -508,6 +508,18 @@ public function newInstance(array $attributes = [], $exists = false): self return $model; } + /** + * Determine if accessing missing attributes is disabled. + * + * + * @return bool + */ + public static function preventsAccessingMissingAttributes() + { + // NOTE: Needed for HasAttributes, just return false + return false; + } + /** * Determine if the given attribute exists. */ From dc7e36b679b3e46c1d262b066718543c1b56fa1e Mon Sep 17 00:00:00 2001 From: Jimmy Puckett Date: Mon, 8 Apr 2024 08:07:06 -0400 Subject: [PATCH 3/3] Bumping version --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index f0bb29e..88c5fb8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.0 +1.4.0