protected function currentStatus()
    {
        if (! $masters = app(MasterSupervisorRepository::class)->all()) {
            return 'inactive';
        }

        return collect($masters)->contains(function ($master) {
            return $master->status === 'paused';
        }) ? 'paused' : 'running';
    }
protected function currentStatus()
    {
        if (! $masters = app(MasterSupervisorRepository::class)->all()) {
            return 'inactive';
        }

        return collect($masters)->contains(function ($master) {
            return $master->status === 'paused';
        }) ? 'paused' : 'running';
    }
protected function currentStatus ( ) { if ( ! $ masters = app ( MasterSupervisorRepository :: class ) -> all ( ) ) { return 'inactive' ; } return collect ( $ masters ) -> contains ( function ( $ master ) { return $ master -> status === 'paused' ; } ) ? 'paused' : 'running' ; }
Get the current status of Horizon.

@return string
Get the current status of Horizon .