init title lokasi, dan penambahan api
This commit is contained in:
@@ -7,12 +7,19 @@
|
||||
|
||||
class VehicleItem extends Model
|
||||
{
|
||||
protected $connection = 'pgsql_second';
|
||||
// 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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user