src/Helpers/RouteHelper.php
public static function getInstalledMiddleware()
    {
        $config = ConfigHelper::getWriter();
        $val = $config->get('route_middleware_installed');

        return is_null($val) ? self::ROUTE_MIDDLEWARE_INSTALLED : $val;
    }
public static function getInstalledMiddleware()
    {
        $config = ConfigHelper::getWriter();
        $val = $config->get('route_middleware_installed');

        return is_null($val) ? self::ROUTE_MIDDLEWARE_INSTALLED : $val;
    }
Get Safe Middleware.