20-02-2026
This commit is contained in:
parent
854ce02bf6
commit
4d6b4930b2
128 changed files with 18247 additions and 2093 deletions
50
app/Models/ProductLogistics.php
Normal file
50
app/Models/ProductLogistics.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue