payload, true); if ($payload['type'] === 'Recall' || $payload['type'] === 'SendBack') { DB::query( << $payload['amount'], 'type' => $payload['unit'], 'id' => $payload['destination']] ); } else if ($payload['type'] === 'Borrow') { DB::query( << $payload['amount'], 'type' => $payload['unit'], 'home' => $this->villageId, 'residence' => $payload['destination']] ); } } }