<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class PaymentMode extends Model
{
    use HasFactory;

    protected $fillable = [
        'mode',
        'status',
        'is_default',
        'priority',
        'accounting_group_id',
        'code',
    ];
    public function getAccountingGroup() {
        return $this->belongsTo(AccountingGroup::class,'accounting_group_id');
    }
}
