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:
Gateway.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Gateway extends Model { protected $guarded = ['id']; protected $casts = ['status' => 'boolean', 'code' => 'string', 'extra' => 'object','input_form'=> 'object']; public function currencies() { return $this->hasMany(GatewayCurrency::class, 'method_code', 'code'); } public function single_currency() { return $this->hasOne(GatewayCurrency::class, 'method_code', 'code')->latest(); } public function scopeCrypto() { return $this->crypto == 1 ? 'crypto' : 'fiat'; } public function scopeAutomatic() { return $this->where('code', '<', 1000); } public function scopeManual() { return $this->where('code', '>=', 1000); } }
Simpan