<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SmtpSetting extends Model
{
    protected $fillable = [
        'host',
        'port',
        'username_enc',
        'password_enc',
        'encryption',
        'from_email',
        'from_name',
        'updated_by',
    ];

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