created_by_user_id === $user->id; } /** * Determine if the user can update the calendar slot */ public function update(User $user, CalendarSlot $calendarSlot): bool { return $calendarSlot->trip->created_by_user_id === $user->id; } /** * Determine if the user can reorder items in the calendar slot */ public function reorder(User $user, CalendarSlot $calendarSlot): bool { return $calendarSlot->trip->created_by_user_id === $user->id; } }