private static function add_blade_to_config()
    {
        $config = \file_get_contents(static::$root . '/config/services.php');

        // Bail if already present.
        if (\strpos($config, 'Blade_Service_Provider') !== false) {
            return;
        }

        $providers = \preg_replace(
            '/(\'providers\'\s*\=>\s*\[)([^]]*)(\])/m',
            "$1$2\tSnap\Blade\Blade_Service_Provider::class,\n\t$3",
            $config
        );

        \file_put_contents(static::$root . '/config/services.php', $providers);
    }