Skip to content

Commit

Permalink
Deal with strict properties in model
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypuckett committed Apr 8, 2024
1 parent f736540 commit 9fbace5
Showing 1 changed file with 12 additions and 0 deletions.
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 9fbace5

Please sign in to comment.