src/Http/Controllers/HCFormManagerController.php
public function getStructure(string $key, string $type = null): JsonResponse
    {
        try {
            $form = $this->formManager->getForm($key, $type);
        } catch (HCException $exception) {
            return $this->response->error($exception->getMessage());
        }

        return $this->response->success('OK', $form);
    }
public function getStructure(string $key, string $type = null): JsonResponse
    {
        try {
            $form = $this->formManager->getForm($key, $type);
        } catch (HCException $exception) {
            return $this->response->error($exception->getMessage());
        }

        return $this->response->success('OK', $form);
    }
public function getStructure ( string $ key , string $ type = null ) : JsonResponse { try { $ form = $ this -> formManager -> getForm ( $ key , $ type ) ; } catch ( HCException $ exception ) { return $ this -> response -> error ( $ exception -> getMessage ( ) ) ; } return $ this -> response -> success ( 'OK' , $ form ) ; }
Get form structure as json object

@param string $key
@param string|null $type
@return JsonResponse
@throws \Illuminate\Contracts\Container\BindingResolutionException
@throws \ReflectionException
Get form structure as json object