belongsTo(PurchaseRequest::class); } public function otherCost() { return $this->belongsTo(otherCost::class); } public function purchaseRequestOtherCostDetails() { return $this->hasMany(PurchaseRequestOtherCostDetail::class); } }