File manager - Edit - /home/linknsbh/linkat.online/app/Models/PaymentGateway.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class PaymentGateway extends Model { protected $fillable = ['title', 'details', 'subtitle', 'name', 'type', 'information', 'keyword']; public $timestamps = false; 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; } public function showForm() { $show = ''; $data = $this->keyword == null ? 'other' : $this->keyword; $values = ['paypal']; if (in_array($data, $values)) { $show = 'no'; } else { $show = 'yes'; } return $show; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 2.1 |
proxy
|
phpinfo
|
Settings