$amount, 'source_id' => $sender->wallet->id, 'target_id' => $recipient->wallet->id, ]); $this->performWalletTransaction->execute( wallet: $sender->wallet, type: WalletTransactionType::DEBIT, amount: $amount, reason: $reason, transfer: $transfer ); $this->performWalletTransaction->execute( wallet: $recipient->wallet, type: WalletTransactionType::CREDIT, amount: $amount, reason: $reason, transfer: $transfer ); return $transfer; }); } }