<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
class ProductDemand extends Pivot
{
protected $guarded = [];
protected $table = 'product_demands';
public function product()
{
return $this->belongsTo(Product::class)->withDefault();
}
public function user()
{
return $this->belongsTo(User::class)->withDefault();
}
}