*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'title' => $this->title, 'location' => $this->location, 'online_url' => $this->online_url, 'starts_at' => $this->starts_at->toIso8601String(), 'ends_at' => $this->ends_at?->toIso8601String(), 'all_day' => $this->all_day, 'image_url' => $this->imageUrl('large'), 'thumb_url' => $this->imageUrl('thumb'), ]; } }