Documentation

DayOff 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.
days_off()  : belongsTo
Get all days off.

Properties

$casts

The attributes that should be cast.

protected array<string|int, mixed> $casts = ['datetime' => 'datetime:Y-m-d']

$fillable

The attributes that are mass assignable.

protected array<string|int, mixed> $fillable = ['datetime']

$hidden

The attributes excluded from the model's JSON form.

protected array<string|int, mixed> $hidden = ['days_off_id', 'days_off_type', 'updated_at', 'created_at']

$table

The table associated with the model.

protected string $table = "days_off"

Methods

days_off()

Get all days off.

public days_off() : belongsTo
Return values
belongsTo

Search results