Update
This commit is contained in:
@@ -12,6 +12,7 @@ class Product extends Model
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'makerworld_id',
|
||||
'category_id',
|
||||
'name',
|
||||
'slug',
|
||||
@@ -27,12 +28,16 @@ class Product extends Model
|
||||
'weight_grams',
|
||||
'print_time_hours',
|
||||
'image_url',
|
||||
'makerworld_url',
|
||||
'makerworld_author',
|
||||
'makerworld_license',
|
||||
'gallery_images',
|
||||
'available_materials',
|
||||
'available_colors',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'makerworld_id' => 'integer',
|
||||
'base_price' => 'float',
|
||||
'is_print_on_demand' => 'boolean',
|
||||
'is_featured' => 'boolean',
|
||||
@@ -55,6 +60,6 @@ class Product extends Model
|
||||
|
||||
public function getFormattedPriceAttribute(): string
|
||||
{
|
||||
return '€ ' . number_format($this->base_price, 2, ',', '.');
|
||||
return '€ '.number_format($this->base_price, 2, ',', '.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user