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']);
    }