Backend parkir - itcn.co.id
This commit is contained in:
28
app/Models/NamaPos.php
Normal file
28
app/Models/NamaPos.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user