Erster Upload
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ProductSize extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'products_sizes';
|
||||
protected $fillable = ['product_id', 'packing_id', 'sku', 'price', 'description'];
|
||||
|
||||
public function product() {
|
||||
return $this->belongsTo(Product::class);
|
||||
}
|
||||
|
||||
public function packing() {
|
||||
return $this->belongsTo(Packing::class);
|
||||
}
|
||||
|
||||
public function inventories() {
|
||||
return $this->hasMany(ProductInventory::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user