Menu

## TelephoneDirectory extends Model
in package
uses SoftDeletes

TelephoneDirectory.php : 27

Class TelephoneDirectory

Model for managing school telephone directory.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$deleted_at : DateTime
$designation : string
$id : int
$name : string
$phone_number : string
$school : School
$school_id : int
$updated_at : DateTime
$dates : array<string|int, mixed>
  The attributes that should be mutated to dates.
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

school() : BelongsTo
  Get the school for this telephone directory entry.

### Properties

#### $created_at

TelephoneDirectory.php : 0
`public DateTime $created_at`

#### $deleted_at

TelephoneDirectory.php : 0
`public DateTime $deleted_at`

#### $designation

TelephoneDirectory.php : 0
`public string $designation`

#### $id

TelephoneDirectory.php : 0
`public int $id`

#### $name

TelephoneDirectory.php : 0
`public string $name`

#### $phone_number

TelephoneDirectory.php : 0
`public string $phone_number`

#### $school read-only

TelephoneDirectory.php : 0
`public School $school`

#### $school_id

TelephoneDirectory.php : 0
`public int $school_id`

#### $updated_at

TelephoneDirectory.php : 0
`public DateTime $updated_at`

#### $dates

TelephoneDirectory.php : 53

The attributes that should be mutated to dates.

`protected array<string|int, mixed> $dates = ['deleted_at']`

#### $fillable

TelephoneDirectory.php : 44

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['name', 'school_id', 'designation', 'phone_number']`

#### $table

TelephoneDirectory.php : 37

The table associated with the model.

`protected string $table = 'telephone_directory'`

### Methods

#### school()

TelephoneDirectory.php : 60

Get the school for this telephone directory entry.

`public school() : BelongsTo`

##### Return values

BelongsTo

## Search results