Kecamatan
extends Model
in package
uses
HasFactory
Class Kecamatan
Represents a Kecamatan (district) model for Pelanggan.
Table of Contents
Properties
- $kabupaten_id : int
- $latitude : float
- $longitude : float
- $nama : string
- $fillable : mixed
- $table : mixed
- The attributes that are mass assignable.
Methods
- kelurahan() : HasMany
- Get the kelurahan (sub-districts) associated with the Kecamatan.
Properties
$kabupaten_id
public
int
$kabupaten_id
The ID of the associated Kabupaten.
$latitude
public
float
$latitude
The latitude of the Kecamatan.
$longitude
public
float
$longitude
The longitude of the Kecamatan.
$nama
public
string
$nama
The name of the Kecamatan.
$fillable
protected
mixed
$fillable
= ['nama', 'latitude', 'longitude', 'kabupaten_id']
$table
The attributes that are mass assignable.
protected
mixed
$table
= 'kecamatan'
Methods
kelurahan()
Get the kelurahan (sub-districts) associated with the Kecamatan.
public
kelurahan() : HasMany