Skip to content

Commit

Permalink
Merge branch 'release/1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypuckett committed Apr 8, 2024
2 parents 6b85119 + dc7e36b commit 940b167
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.4.0
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions src/Support/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 940b167

Please sign in to comment.