*/ public function rules(): array { /** @var Participant */ $participant = request()->route('participant'); return $participant->form->getRegistrationRules(); } /** * @return array */ public function getValidationAttributes(): array { /** @var Participant */ $participant = request()->route('participant'); return $participant->form->getRegistrationAttributes(); } /** * @return array */ public function getValidationMessages(): array { /** @var Participant */ $participant = request()->route('participant'); return $participant->form->getRegistrationMessages(); } public function handle(Participant $participant, ActionRequest $request): JsonResponse { $participant->update(['data' => [...$participant->data, ...$request->validated()]]); ExportSyncAction::dispatch($participant->form->id); Succeeded::message('Teilnehmer*in bearbeitet.')->dispatch(); return response()->json([]); } }