error 500 fix
This commit is contained in:
@@ -60,6 +60,6 @@ class Product extends Model
|
||||
|
||||
public function getFormattedPriceAttribute(): string
|
||||
{
|
||||
return '€ '.number_format($this->base_price, 2, ',', '.');
|
||||
return '€ '.number_format((float) ($this->base_price ?? 0), 2, ',', '.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user