Documentation

State extends Model
in package

Table of Contents

$timestamps  : mixed
$casts  : mixed
$connection  : mixed
$guarded  : mixed
$table  : mixed
cities()  : HasMany
country()  : BelongsTo
Relations
scopeOfCountry()  : mixed
Scopes
scopeOfCountryCode()  : mixed
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_states"

Methods

cities()

public cities() : HasMany
Return values
HasMany

country()

Relations

public country() : BelongsTo
Return values
BelongsTo

scopeOfCountry()

Scopes

public scopeOfCountry(mixed $query, mixed $countryId) : mixed
Parameters
$query : mixed
$countryId : mixed
Return values
mixed

scopeOfCountryCode()

public scopeOfCountryCode(mixed $query, mixed $countryCode) : mixed
Parameters
$query : mixed
$countryCode : mixed
Return values
mixed

boot()

The "booting" method of the model.

protected static boot() : void
Return values
void

Search results