Event addons bookable
This commit is contained in:
@@ -98,6 +98,8 @@ class EventParticipantResource extends JsonResource
|
||||
'departureDateReadable' => $this->resource->departure_date->format('d.m.Y'),
|
||||
'participationOptions' => $this->resource->selectedOptions()->get()->map(
|
||||
fn($option) => new EventParticipantOptionResource($option)->toArray($request))->toArray(),
|
||||
'selectedAddons' => $this->resource->selectedAddons()->get()->map(
|
||||
fn($addon) => new EventParticipantAddonResource($addon)->toArray($request))->toArray(),
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user