<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Database\Eloquent\SoftDeletes;
class Loan  extends Model

{
    use HasApiTokens, HasFactory, Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    use HasFactory;
    use SoftDeletes;
   
    protected $fillable = [
        'employee_id', 'amount', 'remaining_amount', 'monthly_deduction', 'issue_date', 'attachment', 'status', 
    ];

   
    
 
    public function Employee(){
        return $this->belongsTo(Employee::class);
    }
 
    
}
