<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PortalSetting extends Model
{
    protected $fillable = [
        'esborder_base_url',
        'esborder_api_key',
        'sysreflex_base_url',
        'sysreflex_api_token',
        'aggregation_cache_seconds',
    ];

    protected function casts(): array
    {
        return [
            'esborder_api_key' => 'encrypted',
            'sysreflex_api_token' => 'encrypted',
        ];
    }

}
