34 lines
938 B
PHP
34 lines
938 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
// use Modules\Lpj\Database\Factories\InspeksiFactory;
|
|
|
|
class Inspeksi extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'inspeksi';
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = ['data_form', 'foto_form', 'denah_form','permohonan_id', 'name', 'status', 'authorized_status', 'authorized_at', 'authorized_by', 'created_by', 'updated_by', 'deleted_by','dokument_id','data_pembanding'];
|
|
|
|
public function permohonan()
|
|
{
|
|
return $this->belongsTo(Permohonan::class, 'permohonan_id');
|
|
}
|
|
|
|
public function jenis_jaminan()
|
|
{
|
|
return $this->belongsTo(JenisJaminan::class, 'jenis_jaminan_id');
|
|
}
|
|
|
|
// protected static function newFactory(): InspeksiFactory
|
|
// {
|
|
// // return InspeksiFactory::new();
|
|
// }
|
|
}
|