From 8908a02d44e6f3dab00374fe51e2cd2e0b17b33b Mon Sep 17 00:00:00 2001 From: edalzell Date: Wed, 8 Apr 2026 16:02:32 -0700 Subject: [PATCH 1/2] Return the search highlight --- src/Typesense/Index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Typesense/Index.php b/src/Typesense/Index.php index 6c15991..4adcb18 100644 --- a/src/Typesense/Index.php +++ b/src/Typesense/Index.php @@ -134,6 +134,7 @@ public function searchUsingApi($query, array $options = []): array ->map(function ($result, $i) use ($total) { $result['document']['reference'] = $result['document']['id']; $result['document']['search_score'] = Arr::get($this->config, 'settings.maintain_ranking', false) ? ($total - $i) : (int) ($result['text_match'] ?? 0); + $result['document']['search_highlight'] = $result['highlight'] ?? []; return $result['document']; }), From a3fa1bb869df863f0552819e2ae9008b5facc372 Mon Sep 17 00:00:00 2001 From: Erin Dalzell Date: Tue, 16 Jun 2026 14:29:38 -0700 Subject: [PATCH 2/2] Drop Laravel 10 & 11 support for security reasons (#31) --- .github/workflows/run-tests.yml | 4 ++-- composer.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a9da705..fc6e29e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,7 +12,7 @@ jobs: services: typesense: - image: typesense/typesense:27.0.rc21 + image: typesense/typesense:30.1 ports: - 8108:8108/tcp volumes: @@ -27,7 +27,7 @@ jobs: matrix: os: [ubuntu-latest] php: [8.2, 8.3] - laravel: [10.*, 11.*, 12.*] + laravel: [12.*] statamic: [5.*] dependency-version: [prefer-stable] diff --git a/composer.json b/composer.json index ada4e3f..3492ada 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": "^8.2", "guzzlehttp/guzzle": "^7.3", "http-interop/http-factory-guzzle": "^1.0", - "illuminate/support": "^10.0|^11.0|^12.0", + "illuminate/support": "^12.40", "statamic/cms": "^5.38", "typesense/typesense-php": "^5.1" },