<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Scopes\MessageScope;


class NachSupportedBank extends Model
{
    use SoftDeletes;

    protected $table = 'nach_supported_bank';

    //protected $connection = 'mysql_readonly';

    public function getBankLists($type = true){
        $lists = $this->get(['bank']);
        if (!$type) return $lists;
        $bank = [];
        foreach ($lists as $list){
            $bank[] = $list->bank;
        }
        return $bank;
    }
}
