CRUD area & gate, statistik pengunjung per pintu, laporan okupansi area
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user