diff --git a/src/Engines/MeilisearchEngine.php b/src/Engines/MeilisearchEngine.php index 4bdd160..d3c3420 100644 --- a/src/Engines/MeilisearchEngine.php +++ b/src/Engines/MeilisearchEngine.php @@ -103,7 +103,7 @@ public function paginate(Builder $builder, $perPage, $page) { return $this->performSearch($builder, array_filter([ 'filters' => $this->filters($builder), - 'limit' => $perPage, + 'limit' => (int) $perPage, 'offset' => ($page - 1) * $perPage, ])); }