Timetable extends Model Uses HasFactory
Table of Contents
- $casts : array<string|int, mixed>
- The attributes that should be cast.
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable.
- $hidden : array<string|int, mixed>
- The attributes excluded from the model's JSON form.
- $table : string
- The table associated with the model.
- timetables() : belongsTo
- Get all timetables.
- validationRules() : array<string|int, mixed>
- validationTimetable() : array<string|int, mixed>
Properties
$casts
The attributes that should be cast.
protected
array<string|int, mixed>
$casts
= ['weekday' => 'string', 'start' => 'date:H:i', 'end' => 'date:H:i']
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ['weekday', 'start', 'end', 'timetables_type', 'timetables_id']
$hidden
The attributes excluded from the model's JSON form.
protected
array<string|int, mixed>
$hidden
= ['timetables_id', 'timetables_type', 'updated_at', 'created_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= "timetables"
Methods
timetables()
Get all timetables.
public
timetables() : belongsTo
Return values
belongsTo —validationRules()
public
static validationRules() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —validationTimetable()
public
static validationTimetable([mixed $id = null ]) : array<string|int, mixed>
Parameters
- $id : mixed = null