Example #1
0
 public function processVerification(UserService $user)
 {
     try {
         $verification_code = Request::get('verification_code');
         $response = $user->processVerification($verification_code);
         return $this->json_response->success([$response]);
     } catch (Exception $e) {
         return $this->json_response->error(['error' => $e->getMessage()]);
     }
 }