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