@@ -690,22 +690,22 @@ public function putById($id)
690690 ]);
691691 }
692692
693- // try {
694- // $this->validate($this->request, [
695- // 'countryCode' => 'alpha|size:3',
696- // 'eventType' => 'string|max:50',
697- // 'regionName' => 'nullable|string',
698- // 'translations' => 'array',
699- // 'translations.*.webUrl' => 'nullable|string',
700- // 'translations.*.lang' => 'alpha|size:2',
701- // 'translations.*.title' => 'string',
702- // 'translations.*.description' => 'string',
703- // ]);
704- // } catch (ValidationException $e) {
705- // Log::info($e->getMessage());
706-
707- // return $e->getResponse();
708- // }
693+ try {
694+ $ this ->validate ($ this ->request , [
695+ 'countryCode ' => 'alpha|size:3 ' ,
696+ 'eventType ' => 'string|max:50 ' ,
697+ 'regionName ' => 'nullable|string ' ,
698+ 'translations ' => 'array ' ,
699+ 'translations.*.webUrl ' => 'nullable|string ' ,
700+ 'translations.*.lang ' => 'alpha|size:2 ' ,
701+ 'translations.*.title ' => 'string ' ,
702+ 'translations.*.description ' => 'string ' ,
703+ ]);
704+ } catch (ValidationException $ e ) {
705+ Log::info ($ e ->getMessage ());
706+
707+ return $ e ->getResponse ();
708+ }
709709
710710 try {
711711 $ org = $ this ->orgRepo ->findByCountryCode ($ this ->request ->input ('countryCode ' ));
0 commit comments