original_string: protected function loadAttributes($key, array $default = [])
      {
          $attributes = config($key, $default);
  
          if (isset($attributes['prefix']))
              $this->addPrefix($attributes['prefix']);
  
          if (isset($attributes['namespace']))
              $this->setNamespace($attributes['namespace']);
  
          if (isset($attributes['as']))
              $this->setRouteName($attributes['as']);
  
          if (isset($attributes['middleware']))
              $this->setMiddlewares($attributes['middleware']);
      }
code: protected function loadAttributes($key, array $default = [])
      {
          $attributes = config($key, $default);
  
          if (isset($attributes['prefix']))
              $this->addPrefix($attributes['prefix']);
  
          if (isset($attributes['namespace']))
              $this->setNamespace($attributes['namespace']);
  
          if (isset($attributes['as']))
              $this->setRouteName($attributes['as']);
  
          if (isset($attributes['middleware']))
              $this->setMiddlewares($attributes['middleware']);
      }
code_tokens: protected function loadAttributes ( $ key , array $ default = [ ] ) { $ attributes = config ( $ key , $ default ) ; if ( isset ( $ attributes [ 'prefix' ] ) ) $ this -> addPrefix ( $ attributes [ 'prefix' ] ) ; if ( isset ( $ attributes [ 'namespace' ] ) ) $ this -> setNamespace ( $ attributes [ 'namespace' ] ) ; if ( isset ( $ attributes [ 'as' ] ) ) $ this -> setRouteName ( $ attributes [ 'as' ] ) ; if ( isset ( $ attributes [ 'middleware' ] ) ) $ this -> setMiddlewares ( $ attributes [ 'middleware' ] ) ; }
docstring: Load attributes from config file.
  
  @param  string  $key
  @param  array   $default
docstring_tokens: Load attributes from config file .