Backend parkir - itcn.co.id

This commit is contained in:
2025-09-10 14:03:55 +07:00
commit 4b7edaf2e9
97 changed files with 12278 additions and 0 deletions

28
app/Models/NamaPos.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class NamaPos extends Model
{
use HasFactory;
protected $table = 'nama_pos';
protected $primaryKey = 'id';
public $incrementing = false;
protected $keyType = 'string';
protected $fillable = [
'id','nama','jenis','tanggal','lokasi','grace_period','manless','area'
];
public function posParams() {
return $this->hasOne(ConfigPos::class, 'id_pos', 'id');
}
public function posHardware() {
return $this->hasOne(ConfigHardware::class, 'id_pos', 'id');
}
}