private function extractPostData(FilterUrl $filterUrl, $options, Request $request): void
    {
        if (empty($options['postAsSlug']) && empty($options['postAsGet'])) {
            return;
        }

        foreach ($request->request->all() as $name => $value) {
            if (is_array($value)) {
                $value = implode(',', $value);
            }
            if (in_array($name, $options['postAsSlug'])) {
                $filterUrl->setSlug($name, $value);
            }
            if (in_array($name, $options['postAsGet'])) {
                $filterUrl->setGet($name, $value);
            }
        }
    }
private function extractPostData(FilterUrl $filterUrl, $options, Request $request): void
    {
        if (empty($options['postAsSlug']) && empty($options['postAsGet'])) {
            return;
        }

        foreach ($request->request->all() as $name => $value) {
            if (is_array($value)) {
                $value = implode(',', $value);
            }
            if (in_array($name, $options['postAsSlug'])) {
                $filterUrl->setSlug($name, $value);
            }
            if (in_array($name, $options['postAsGet'])) {
                $filterUrl->setGet($name, $value);
            }
        }
    }
Extract POST data from the passed request.

@param FilterUrl $filterUrl The filter URL to populate.
@param array     $options   The options.
@param Request   $request   The request.

@return void