Handling of event addons

This commit is contained in:
2026-08-12 17:18:45 +02:00
parent 085299336e
commit 6e4e6b645c
74 changed files with 3072 additions and 95 deletions
@@ -0,0 +1,24 @@
<?php
namespace App\Resources;
use App\Models\EventParticipantOption;
use Illuminate\Http\Resources\Json\JsonResource;
class EventParticipantOptionResource extends JsonResource
{
function __construct(EventParticipantOption $option)
{
parent::__construct($option);
}
public function toArray($request): array
{
return [
'questionKey' => $this->resource->question_key,
'questionLabel' => $this->resource->question_label,
'value' => $this->resource->value,
'valueLabel' => $this->resource->value_label,
];
}
}