Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing model attribute errors in Laravel versions with strict mo…
Browse files Browse the repository at this point in the history
…de enabled
bryannielsen committed Sep 23, 2024
1 parent dbec8b3 commit 15bf375
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
@@ -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
2 changes: 2 additions & 0 deletions src/Model.php
Original file line number Diff line number Diff line change
@@ -8,4 +8,6 @@
class Model extends \Illuminate\Database\Eloquent\Model
{
protected $connection = 'coilpack';

protected static $modelsShouldPreventAccessingMissingAttributes = false;
}

0 comments on commit 15bf375

Please sign in to comment.