45 lines
972 B
PHP
45 lines
972 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
// use Modules\Lpj\Database\Factories\PenilaiFactory;
|
|
|
|
class Penilai extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'penilai';
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = [
|
|
'dokument_id',
|
|
'permohonan_id',
|
|
'inspeksi_id',
|
|
'kertas_kerja',
|
|
'resume',
|
|
'lpj',
|
|
'type',
|
|
'memo',
|
|
'rap',
|
|
'type_penilai'
|
|
];
|
|
|
|
// protected static function newFactory(): PenilaiFactory
|
|
// {
|
|
// // return PenilaiFactory::new();
|
|
// }
|
|
public function dokument(){
|
|
return $this->belongsTo(DokumenJaminan::class);
|
|
}
|
|
public function permohonan(){
|
|
return $this->belongsTo(Permohonan::class);
|
|
}
|
|
public function inspeksi(){
|
|
return $this->belongsTo(Inspeksi::class);
|
|
}
|
|
|
|
}
|