mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Update CanBeBought.php
This commit is contained in:
@@ -38,7 +38,7 @@ trait CanBeBought
|
||||
public function getBuyablePrice(): Money
|
||||
{
|
||||
if (($price = $this->getAttribute('price'))) {
|
||||
return $price;
|
||||
return new Money($price);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user