Sindbad~EG File Manager

Current Path : /home/copmadinaarea/creditunion.copeastlegondistrict.org/app/Models/
Upload File :
Current File : /home/copmadinaarea/creditunion.copeastlegondistrict.org/app/Models/PaymentGateway.php

<?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