<?php

namespace App\Models;

use App\Traits\hasCurrency;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Installment extends Model
{
        use HasFactory, hasCurrency;

    protected $table="installments";

    protected $fillable=['amount','transfer_id','number'];

    protected $currency_attributes = ['amount'];

    public function transfer()
    {
        return $this->belongsto('App\Models\Transfer');
    }
}





