update form surveyor alat berat, kapal, kendaraan, mesin

This commit is contained in:
majid
2024-11-05 16:54:04 +07:00
parent 0395235ce0
commit 2ae29fae23
16 changed files with 1110 additions and 283 deletions

View File

@@ -14,7 +14,7 @@ class KondisiBangunan extends Model
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected $fillable = ['code', 'name'];
protected static function newFactory(): KondisiBangunanFactory
{

View File

@@ -17,7 +17,7 @@ class Penilaian extends Model
*/
protected $table = 'penilaian';
protected $fillable = [
'jenis_penilaian_id', 'tanggal_kunjungan', 'keterangan','nomor_registrasi',
'jenis_penilaian_id', 'penilaian_id', 'tanggal_kunjungan', 'keterangan','nomor_registrasi',
'status', 'authorized_status', 'authorized_at', 'authorized_by', 'created_at',
'created_by', 'updated_at', 'updated_by', 'deleted_at', 'deleted_by'
];
@@ -47,6 +47,4 @@ class Penilaian extends Model
{
return $this->belongsTo(Permohonan::class, 'nomor_registrasi', 'nomor_registrasi');
}
}

View File

@@ -29,7 +29,7 @@ class PenilaianTeam extends Model
public function penilaian(){
return $this->belongsTo(Penilaian::class, 'penilaian_id', 'id');
return $this->hasMany(Penilaian::class, 'penilaian_id', 'id');
}
protected static function newFactory(): PenilaianTeamFactory