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 Sep 26, 2024
1 parent 053d74c commit e967c2f
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 @@ -8,6 +8,10 @@
- Control Panel access to Coilpack version information and GraphiQL for SuperAdmin Users
- Dependency for updated GraphiQL [MLL\GraphiQL](https://github.com/mll-lab/laravel-graphiql)

### Fixed

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

### Changed

- Dropped support for Laravel 8
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 e967c2f

Please sign in to comment.