$filter * @param array $routeParams */ public function callFilter(string $routeName, array $filter, array $routeParams = []): TestResponse { return $this->call('GET', $this->filterUrl($routeName, $filter, $routeParams)); } /** * @param array $filter * @param array $routeParams */ public function filterUrl(string $routeName, array $filter, array $routeParams = []): string { $params = [ 'filter' => $this->filterString($filter), ...$routeParams ]; return route($routeName, $params); } /** * @param array $filter */ public function filterString(array $filter): string { return base64_encode(rawurlencode(json_encode($filter))); } }