changes
This commit is contained in:
@ -6,6 +6,7 @@ use App\Traits\StatusTrait;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Modules\Supplier\Models\Supplier;
|
||||
|
||||
|
||||
class Product extends Model
|
||||
{
|
||||
USE StatusTrait;
|
||||
@ -25,10 +26,16 @@ class Product extends Model
|
||||
return $this->belongsTo(SubCategory::class, 'sub_category_id');
|
||||
}
|
||||
|
||||
public function fabricCategory()
|
||||
{
|
||||
return $this->belongsTo(FabricCategory::class, 'fabriccategory_id');
|
||||
}
|
||||
|
||||
public function warehouse()
|
||||
{
|
||||
return $this->belongsTo(Warehouse::class, 'warehouse_id');
|
||||
}
|
||||
|
||||
public function supplier()
|
||||
{
|
||||
return $this->belongsTo(Supplier::class, 'supplier_id');
|
||||
|
Reference in New Issue
Block a user