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);
    }
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);
    }
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 ) ; }
Add the provider to the services config.

Crude but gets the job done.

@Since 1.0.0
Add the provider to the services config .