belongsTo(PurchaseOrder::class); } public function otherCost() { return $this->belongsTo(otherCost::class); } public function purchaseOrderOtherCostDetails() { return $this->hasMany(PurchaseOrderOtherCostDetail::class); } }