protected function getStoreConfig(string $name): array
    {
        $config = $this->app->config('database.connections.' . $name);

        if (null === $config) {
            throw new InvalidArgumentException('Invalid connection name specified: ' . $name);
        }

        return $config;
    }
protected function getStoreConfig(string $name): array
    {
        $config = $this->app->config('database.connections.' . $name);

        if (null === $config) {
            throw new InvalidArgumentException('Invalid connection name specified: ' . $name);
        }

        return $config;
    }
protected function getStoreConfig ( string $ name ) : array { $ config = $ this -> app -> config ( 'database.connections.' . $ name ) ; if ( null === $ config ) { throw new InvalidArgumentException ( 'Invalid connection name specified: ' . $ name ) ; } return $ config ; }
Get the store config.

@param string|null $name

@throws InvalidArgumentException

@return array
Get the store config .