20-02-2026

This commit is contained in:
Kevin Adametz 2026-02-20 17:57:50 +01:00
parent 854ce02bf6
commit 4d6b4930b2
128 changed files with 18247 additions and 2093 deletions

View file

@ -0,0 +1,50 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ProductLogistics extends Model
{
public $timestamps = false;
protected $fillable = [
'product_variant_id',
'shipping_class_id',
'package_width_cm',
'package_height_cm',
'package_depth_cm',
'package_weight_g',
'package_count',
'location_bin',
'packaging_type',
'packaging_recyclable_percent',
'is_palletizable',
'hs_code',
];
protected function casts(): array
{
return [
'package_count' => 'integer',
'is_palletizable' => 'boolean',
];
}
/**
* Gehört zu einer Produkt-Variante.
*/
public function productVariant(): BelongsTo
{
return $this->belongsTo(ProductVariant::class);
}
/**
* Versandklasse.
*/
public function shippingClass(): BelongsTo
{
return $this->belongsTo(ShippingClass::class);
}
}