|string> */ public function rules(): array { return [ 'data.userId' => 'required|string', 'data.challengeIds' => 'required|array', ]; } protected function passedValidation() { $this->userId = $this->input('data.userId'); $this->challengeIds = $this->input('data.challengeIds', []); } }