From c2bcece2e2384c90803c81e82c82393315935206 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Feb 2022 11:48:24 +0800 Subject: [PATCH] fix wallets transaction lists --- app/Http/Resources/CompanyResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/CompanyResource.php b/app/Http/Resources/CompanyResource.php index 8e109e1c..fcc3db78 100644 --- a/app/Http/Resources/CompanyResource.php +++ b/app/Http/Resources/CompanyResource.php @@ -62,7 +62,7 @@ class CompanyResource extends JsonResource $segment = SegmentConstant::where('reference', SegmentConstants::SUPPLIER_CURRENCIES)->where('detail->id', $this->id)->first(); return $segment ? CurrencyResource::collection(Currency::whereIn('id', $segment->detail->currencies)->get()) : []; }), - 'wallets' => $this->wallets, + 'wallets' => $this->id, 'wallet' => new WalletResource($this->wallets()->first()), 'created_at' => $this->created_at->format('d-m-Y') ];