update form menu surveyor

This commit is contained in:
majid
2024-10-23 17:38:38 +07:00
parent dfc9ea74ec
commit 0c976a7b5c
40 changed files with 3679 additions and 1145 deletions

27
app/Models/Denah.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\DenahFactory;
class Denah extends Model
{
use HasFactory;
protected $table = 'denah';
/**
* The attributes that are mass assignable.
*/
protected $fillable = ['permohonan_id', 'foto_denah', 'luas', 'jenis_jaminan_id'];
public function jenisJaminan(){
return $this->belongsTo(JenisJaminan::class, 'jenis_jaminan_id');
}
protected static function newFactory(): DenahFactory
{
//return DenahFactory::new();
}
}