Sindbad~EG File Manager
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PaymentGateway extends Model {
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'payment_gateways';
public function getParametersAttribute($value) {
return json_decode($value);
}
public function getSupportedCurrenciesAttribute($value) {
return json_decode($value);
}
public function chargeLimits() {
return $this->morphMany(ChargeLimit::class, 'gateway');
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists