Files
SpiceManagementSystem/app/Models/ProductSize.php
T
2026-09-11 01:17:47 +02:00

26 lines
585 B
PHP

<?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);
}
}