Documentation

Country extends Model
in package

Table of Contents

$timestamps  : mixed
$casts  : mixed
$connection  : mixed
$guarded  : mixed
$table  : mixed
scopeOfCode()  : mixed
Scopes
states()  : HasMany
Relations
boot()  : void
The "booting" method of the model.

Properties

$timestamps

public mixed $timestamps = true

$casts

protected mixed $casts = ['meta' => 'json', 'has_postal_codes' => 'boolean', '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_countries"

Methods

scopeOfCode()

Scopes

public scopeOfCode(mixed $query, mixed $code) : mixed
Parameters
$query : mixed
$code : mixed
Return values
mixed

states()

Relations

public states() : HasMany
Return values
HasMany

boot()

The "booting" method of the model.

protected static boot() : void
Return values
void

Search results