'boolean', 'sort_order' => 'integer', ]; } public function organization(): BelongsTo { return $this->belongsTo(Organization::class, 'organization_id'); } public function rosterEntries(): HasMany { return $this->hasMany(RosterEntry::class, 'shift_id'); } public function timeLabel(): string { $start = substr((string) $this->start_time, 0, 5); $end = substr((string) $this->end_time, 0, 5); return $start.'–'.$end; } }