protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);

        if (empty($hosts)) {
            throw new InvalidArgumentException('Database hosts array is empty.');
        }

        return $hosts;
    }
protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);

        if (empty($hosts)) {
            throw new InvalidArgumentException('Database hosts array is empty.');
        }

        return $hosts;
    }
protected function parseHosts ( array $ config ) { $ hosts = Arr :: wrap ( $ config [ 'host' ] ) ; if ( empty ( $ hosts ) ) { throw new InvalidArgumentException ( 'Database hosts array is empty.' ) ; } return $ hosts ; }
Parse the hosts configuration item into an array.

@param  array  $config
@return array
Parse the hosts configuration item into an array .