From b6358285414f097b061aee827b3efd13344cbd39 Mon Sep 17 00:00:00 2001 From: Max Zhou Date: Fri, 6 Dec 2019 11:36:26 +0800 Subject: [PATCH] add options method back --- src/SliderFilter.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/SliderFilter.php b/src/SliderFilter.php index 290b235..fcdd175 100644 --- a/src/SliderFilter.php +++ b/src/SliderFilter.php @@ -29,6 +29,18 @@ public function apply(Request $request, $query, $value) return $query; } + /** + * Get the filter's available options. + * + * @param Request $request + * + * @return array + */ + public function options(Request $request) + { + return []; + } + public function minValue(int $min): self { return $this->withMeta([ 'min' => $min ]);