One Hat Cyber Team
Your IP :
216.73.216.55
Server IP :
5.189.175.239
Server :
Linux panel.gemx-ai.com 5.14.0-570.19.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 4 04:00:24 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
farmersapp
/
hrm.farmersapp.store
/
app
/
Models
/
Edit File:
TransferBalance.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class TransferBalance extends Model { protected $fillable = [ 'from_account_id', 'to_account_id', 'date', 'amount', 'payment_type_id', 'referal_id', 'description', 'created_by', ]; public function account($account) { $account = AccountList::where('id','=',$account)->first(); return $account; } public function payment_type($payment) { $payment = PaymentType::where('id','=',$payment)->first(); return $payment; } public function payment_types() { return $this->hasOne('App\Models\PaymentType', 'id', 'payment_type_id'); } }
Simpan