Erster Upload
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ProductInventory extends Model
|
||||
{
|
||||
protected $fillable = ['product_id', 'size_id', 'out_at'];
|
||||
protected $table = 'products_inventory';
|
||||
|
||||
public function product()
|
||||
{
|
||||
return $this->belongsTo(product::class);
|
||||
}
|
||||
|
||||
public function size()
|
||||
{
|
||||
return $this->belongsTo(ProductSize::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user