<?php
namespace App\Models;
use Bagusindrayana\LaravelFilter\Traits\LaravelFilter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Reimbursement extends Model
{
use HasFactory,LaravelFilter;
protected $fillable = [
'reimbursement_name',
'karyawan_id',
'reimbursement_category_id',
'reimbursement_date',
'reimbursement_amount',
'reimbursement_vendor',
'reimbursement_note',
'reimbursement_prove_picture'
];
public function karyawan()
{
return $this->belongsTo(Karyawan::class);
}
public function reimbursement_category()
{
return $this->belongsTo(ReimbursementCategory::class);
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]