Eager load tags for the bookmark
This commit is contained in:
parent
b2dd20a624
commit
2f7f84d896
@ -13,6 +13,8 @@ class Bookmark extends Model
|
||||
|
||||
protected $table = 'bookmarks';
|
||||
|
||||
protected $with = ['tags'];
|
||||
|
||||
public function tags(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Tag::class);
|
||||
|
Loading…
Reference in New Issue
Block a user