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