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']);
    }
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']);
    }
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' ] ) ; }
Load attributes from config file.

@param  string  $key
@param  array   $default
Load attributes from config file .