original_string: protected function getPathFromConfig($configName, $default)
      {
          $path = config("laravel-package-generator.$configName");
  
          if (empty($path)) {
              $path = $default;
          } else {
              $path = base_path($path);
          }
  
          $realPath = realpath($path);
  
          if ($realPath === false) {
              throw RuntimeException::noAccessTo($path);
          }
  
          return $realPath;
      }
code: protected function getPathFromConfig($configName, $default)
      {
          $path = config("laravel-package-generator.$configName");
  
          if (empty($path)) {
              $path = $default;
          } else {
              $path = base_path($path);
          }
  
          $realPath = realpath($path);
  
          if ($realPath === false) {
              throw RuntimeException::noAccessTo($path);
          }
  
          return $realPath;
      }
code_tokens: protected function getPathFromConfig ( $ configName , $ default ) { $ path = config ( "laravel-package-generator.$configName" ) ; if ( empty ( $ path ) ) { $ path = $ default ; } else { $ path = base_path ( $ path ) ; } $ realPath = realpath ( $ path ) ; if ( $ realPath === false ) { throw RuntimeException :: noAccessTo ( $ path ) ; } return $ realPath ; }
docstring: Get path from config.
  
  @param string $configName
  @param string $default
  
  @return string
  
  @throws RuntimeException
docstring_tokens: Get path from config .