Skip to content

Commit

Permalink
Prevent LazyLoadingViolationException when using strict mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Senexis authored Nov 9, 2024
1 parent 36e3f9c commit f0e7ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
class MenuItem extends Model
{
protected $guarded = [];
protected $with = ['linkable'];

public function getTable(): string
{
Expand Down

0 comments on commit f0e7ee8

Please sign in to comment.