<?php

namespace App\Models;

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

class Income extends Model
{
    use HasFactory;
    protected $fillable=[
        'name',
        'incomeHead',
        'invoice_number',
        'date',
        'amount',
       // 'attach_document',
        'description',
    ];
    
    public function head(){
        return $this->belongsTo(IncomeHead::class, 'incomeHead', 'id');
    }
}