From 32fc5793073b24e226733f63f7ef18834335ae70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Wed, 10 Nov 2021 14:05:40 +0300 Subject: [PATCH] Account show page fix typo --- app/Http/Controllers/Banking/Accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Banking/Accounts.php b/app/Http/Controllers/Banking/Accounts.php index 6b8c66ab1..5f3ac377d 100644 --- a/app/Http/Controllers/Banking/Accounts.php +++ b/app/Http/Controllers/Banking/Accounts.php @@ -37,7 +37,7 @@ class Accounts extends Controller // Handle transactions $transactions = Transaction::with('account', 'category')->where('account_id', $account->id)->collect('paid_at'); - $transfers = Transfer::with('transaction')->all()->filter(function ($transfer) use($account) { + $transfers = Transfer::with('transaction')->cursor()->filter(function ($transfer) use($account) { if ($transfer->expense_account->id == $account->id || $transfer->income_account->id == $account->id) { return true; }