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", 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. */