Skip to content

Commit

Permalink
Merge pull request #35 from spinen/feature/supportL11
Browse files Browse the repository at this point in the history
support l11
  • Loading branch information
jimmypuckett authored Apr 8, 2024
2 parents efa909d + 9fbace5 commit be67ca4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
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 be67ca4

Please sign in to comment.