<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BankMethod extends Model
{
    protected $fillable = [
        'bank_name',
        'slug',
        'logo',
        'account_number',
        'account_holder',
        'branch_name',
        'status',
        'sort_order',
    ];

    protected $casts = [
        'status'     => 'boolean',
        'sort_order' => 'integer',
    ];

    public function scopeActive($query)
    {
        return $query->where('status', true);
    }
}
