One Hat Cyber Team
Your IP:
216.73.216.54
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
fluxyjvi
/
www
/
project
/
app
/
Models
/
View File Name :
PaymentGateway.php
<?php namespace App\Models; use Illuminate\{ Database\Eloquent\Model }; class PaymentGateway extends Model { protected $fillable = ['title', 'details', 'subtitle', 'name', 'type', 'information','currency_id']; public $timestamps = false; public function currency() { return $this->belongsTo('App\Models\Currency')->withDefault(); } public static function scopeHasGateway($curr) { return PaymentGateway::where('currency_id', 'like', "%\"{$curr}\"%")->get(); } public function convertAutoData(){ return json_decode($this->information,true); } public function getAutoDataText(){ $text = $this->convertAutoData(); return end($text); } public function showKeyword(){ $data = $this->keyword == null ? 'other' : $this->keyword; return $data; } }