Skip to content

Commit

Permalink
Merge pull request #51 from Senexis/fix-lazy-violation
Browse files Browse the repository at this point in the history
Prevent LazyLoadingViolationException  when using strict mode
  • Loading branch information
datlechin authored Nov 10, 2024
2 parents d960b03 + 68c062d commit 6859270
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Models/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class MenuItem extends Model
{
protected $guarded = [];

protected $with = ['linkable'];

public function getTable(): string
{
return config('filament-menu-builder.tables.menu_items', parent::getTable());
Expand Down

0 comments on commit 6859270

Please sign in to comment.