This commit is contained in:
2026-10-31 14:23:53 +01:00
parent e6805f2245
commit f7edd64c8a
56 changed files with 5760 additions and 271 deletions
+6 -1
View File
@@ -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, ',', '.');
}
}