Skip to content

Commit

Permalink
Fix missing model attribute errors in Laravel versions with strict mo…
Browse files Browse the repository at this point in the history
…de enabled
  • Loading branch information
bryannielsen committed Jul 3, 2024
1 parent 64f3efe commit 05959ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
- Updated [Rebing/GraphQL](https://github.com/rebing/graphql-laravel) Dependency from version 8.6 to 9.2
- Updated [Rcrowe/TwigBridge](https://github.com/rcrowe/TwigBridge) Dependency from version 0.14.1 to 0.14.3

### Fixed

- Handling of missing model attributes when Laravel is operating in strict mode

## [1.3.2] - 2024-07-03

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
class Model extends \Illuminate\Database\Eloquent\Model
{
protected $connection = 'coilpack';

protected static $modelsShouldPreventAccessingMissingAttributes = false;
}

0 comments on commit 05959ff

Please sign in to comment.