Files
backend_parkir/app/Models/VehicleItem.php
T

26 lines
600 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class VehicleItem extends Model
{
// protected $connection = 'pgsql_second';
protected $table = 'jenis_mobil';
protected $primaryKey = 'id';
public $timestamps = false;
protected $keyType = 'string';
use HasFactory;
protected $fillable = [
'id', 'nama', 'tanggal', 'short_cut', 'orang', 'validasi', 'need_access'
];
public function VehiclePrice () {
return $this->hasOne(MasterTarif::class, 'id', 'id_mobil');
}
}