function getRunningServices()
    {
        return collect(array_filter(explode(PHP_EOL, $this->cli->runAsUser(
            'brew services list | grep started | awk \'{ print $1; }\'',
            function ($exitCode, $errorOutput) {
                output($errorOutput);

                throw new DomainException('Brew was unable to check which services are running.');
            }
        ))));
    }
function getRunningServices()
    {
        return collect(array_filter(explode(PHP_EOL, $this->cli->runAsUser(
            'brew services list | grep started | awk \'{ print $1; }\'',
            function ($exitCode, $errorOutput) {
                output($errorOutput);

                throw new DomainException('Brew was unable to check which services are running.');
            }
        ))));
    }
function getRunningServices ( ) { return collect ( array_filter ( explode ( PHP_EOL , $ this -> cli -> runAsUser ( 'brew services list | grep started | awk \'{ print $1; }\'' , function ( $ exitCode , $ errorOutput ) { output ( $ errorOutput ) ; throw new DomainException ( 'Brew was unable to check which services are running.' ) ; } ) ) ) ) ; }
Get the currently running brew services

@return \Illuminate\Support\Collection
Get the currently running brew services