belongsTo(Category::class, 'category_id'); } public function subCategory() { 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'); } }