Relative Content

Tag Archive for phplaravelfirebasegoogle-cloud-firestore

how to execute many query at same in my web.php route (Laravel)

Please, am new using laravel and firestore. i have users plans table(beta target, beta kopa, beta flex and users table), in the above table when a user makes a payment via card from the app, it first checks if the user paid into either any of the listed plan table and update the specific table as selected and also update the users table. Now, where am having issues is when a user withdraws, it sometimes debit the users plan table and wont debit the specific user main account, sometimes it will debit the users main account and wont debit the plan table account. please why is it not debiting both plan table and users table at same time. i will so much appreciate any help please. below is my web.php route