Skip to content

Commit

Permalink
Update Cart.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Jan 6, 2025
1 parent 53605c6 commit f41c5a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/Models/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ protected static function newFactory()

public function lines(): HasMany
{
return $this->hasMany(CartLine::modelClass(), 'cart_id', 'id');
return $this->hasMany(CartLine::modelClass(), 'cart_id', 'id')
->whereHas('purchasable');
}

public function currency(): BelongsTo
Expand Down

0 comments on commit f41c5a8

Please sign in to comment.