<?php

namespace App\Models;

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

class PaymentMethod extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'money',
        'type',
        'hidden',
        'corrispettivo_fiscale',
        'enabled',
        'bank_id'
    ];

    public function bank()
    {
        return $this->belongsTo(\App\Models\Bank::class);
    }

}
