Menu

## Country extends Model
in package
uses HasFactory

Country.php : 30

Class Country

Model for managing country information.

##### Tags

mixin

### Table of Contents

#### Properties

$city : Collection|array<string|int, City>
$created_at : DateTime
$id : int
$iso_code : string
$name : string
$order : int
$school : Collection|array<string|int, School>
$short_name : string
$state : Collection|array<string|int, State>
$status : int
$tel_prefix : string
$updated_at : DateTime
$userprofile : Collection|array<string|int, Userprofile>
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : mixed

#### Methods

city() : HasMany
  Get cities in this country.
school() : HasMany
  Get schools in this country.
state() : HasMany
  Get states in this country.
userprofile() : HasMany
  Get user profiles from this country.

### Properties

#### $city read-only

Country.php : 0
`public Collection|array<string|int, City> $city`

#### $created_at

Country.php : 0
`public DateTime $created_at`

#### $id

Country.php : 0
`public int $id`

#### $iso_code

Country.php : 0
`public string $iso_code`

#### $name

Country.php : 0
`public string $name`

#### $order

Country.php : 0
`public int $order`

#### $school read-only

Country.php : 0
`public Collection|array<string|int, School> $school`

#### $short_name

Country.php : 0
`public string $short_name`

#### $state read-only

Country.php : 0
`public Collection|array<string|int, State> $state`

#### $status

Country.php : 0
`public int $status`

#### $tel_prefix

Country.php : 0
`public string $tel_prefix`

#### $updated_at

Country.php : 0
`public DateTime $updated_at`

#### $userprofile read-only

Country.php : 0
`public Collection|array<string|int, Userprofile> $userprofile`

#### $fillable

Country.php : 40

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['name', 'short_name', 'iso_code', 'tel_prefix', 'status', 'order']`

#### $table

Country.php : 33
`protected mixed $table = 'countries'`

### Methods

#### city()

Country.php : 79

Get cities in this country.

`public city() : HasMany`

##### Return values

HasMany

#### school()

Country.php : 49

Get schools in this country.

`public school() : HasMany`

##### Return values

HasMany

#### state()

Country.php : 69

Get states in this country.

`public state() : HasMany`

##### Return values

HasMany

#### userprofile()

Country.php : 59

Get user profiles from this country.

`public userprofile() : HasMany`

##### Return values

HasMany

## Search results