protected function enableMiddleware(string $key = '', string $group = null)
    {
        $middleware = $this->getMiddleware($key, $group);
        if ($middleware instanceof Enableable) {
            $middleware->enable();
        }
        return $this;
    }