CRUD area & gate, statistik pengunjung per pintu, laporan okupansi area

This commit is contained in:
2026-10-21 07:50:46 +07:00
parent 411d365366
commit 42a4d4ccf5
13 changed files with 1826 additions and 79 deletions
+6
View File
@@ -12,12 +12,18 @@ class NamaPos extends Model
protected $table = 'nama_pos';
protected $primaryKey = 'id';
public $incrementing = false;
public $timestamps = false;
protected $keyType = 'string';
protected $fillable = [
'id','nama','jenis','tanggal','lokasi','grace_period','manless','area'
];
public function areaParkir()
{
return $this->belongsTo(MasterLokasi::class, 'area', 'id_lokasi');
}
public function posHardware() {
return $this->hasOne(ConfigHardware::class, 'id_pos', 'id');
}