Kelurahan
extends Model
in package
uses
HasFactory
Class Kelurahan
Represents the Kelurahan model.
Table of Contents
Properties
- $kecamatan_id : int
- $latitude : float
- $longitude : float
- $nama : string
- $fillable : mixed
- $table : mixed
- The attributes that are mass assignable.
Methods
- getKecamatanIdAttribute() : int
- Get the associated Kecamatan ID.
- getLatitudeAttribute() : float
- Get the latitude of the Kelurahan.
- getLongitudeAttribute() : float
- Get the longitude of the Kelurahan.
- getNamaAttribute() : string
- Get the name of the Kelurahan.
Properties
$kecamatan_id
public
int
$kecamatan_id
The ID of the associated Kecamatan.
$latitude
public
float
$latitude
The latitude of the Kelurahan.
$longitude
public
float
$longitude
The longitude of the Kelurahan.
$nama
public
string
$nama
The name of the Kelurahan.
$fillable
protected
mixed
$fillable
= ['nama', 'latitude', 'longitude', 'kecamatan_id']
$table
The attributes that are mass assignable.
protected
mixed
$table
= 'kelurahan'
Methods
getKecamatanIdAttribute()
Get the associated Kecamatan ID.
public
getKecamatanIdAttribute() : int
Return values
intgetLatitudeAttribute()
Get the latitude of the Kelurahan.
public
getLatitudeAttribute() : float
Return values
floatgetLongitudeAttribute()
Get the longitude of the Kelurahan.
public
getLongitudeAttribute() : float
Return values
floatgetNamaAttribute()
Get the name of the Kelurahan.
public
getNamaAttribute() : string