Documentation

City extends Model
in package

Table of Contents

$timestamps  : mixed
$casts  : mixed
$connection  : mixed
$guarded  : mixed
$table  : mixed
city_postal_codes()  : HasMany
scopeOfState()  : mixed
Scopes
state()  : BelongsTo
Relations
boot()  : void
The "booting" method of the model.

Properties

$timestamps

public mixed $timestamps = true

$casts

protected mixed $casts = ['meta' => 'json', 'geonames_detail' => 'json', 'created_at' => 'datetime', 'updated_at' => 'datetime']

$connection

protected mixed $connection = "master"

$guarded

protected mixed $guarded = ['id', 'created_at', 'updated_at']

$table

protected mixed $table = "geo_cities"

Methods

city_postal_codes()

public city_postal_codes() : HasMany
Return values
HasMany

scopeOfState()

Scopes

public scopeOfState(mixed $query, mixed $stateId) : mixed
Parameters
$query : mixed
$stateId : mixed
Return values
mixed

state()

Relations

public state() : BelongsTo
Return values
BelongsTo

boot()

The "booting" method of the model.

protected static boot() : void
Return values
void

Search results