-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support strict models by handling
MissingAttributeException
This update ensures compatibility with Laravel's `Model::shouldBeStrict()` feature. For example, the following code may throw a `MissingAttributeException` if any defined attribute event attributes are not fetched: ```php Order::query()->pluck('status', 'id'); ``` To address this, each `getAttribute()` call is now wrapped in a try-catch block, preventing exceptions and maintaining functionality in strict mode.
- Loading branch information
1 parent
a8d74ae
commit f82fdc8
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters