### Update search Method Callback Parameter for Algolia PHP Client v2.2 Source: https://github.com/laravel/scout/blob/10.x/UPGRADE.md For Algolia PHP client v2.2, the callback function passed to the `search` method now receives an instance of `Algolia/AlgoliaSearch/SearchIndex` as its first argument. Developers should adjust their callback signatures to reflect this change. ```PHP Method: search(callback) Callback Parameter 1 Type: Algolia\AlgoliaSearch\SearchIndex ``` -------------------------------- ### Rename Algolia Exception Class in PHP Client v2.2 Source: https://github.com/laravel/scout/blob/10.x/UPGRADE.md When upgrading to Algolia PHP client v2.2, the `AlgoliaSearch\AlgoliaException` class was renamed to `Algolia\AlgoliaSearch\Exceptions\AlgoliaException`. All code references to the old class name must be updated accordingly. ```PHP Old Class: AlgoliaSearch\AlgoliaException New Class: Algolia\AlgoliaSearch\Exceptions\AlgoliaException ``` -------------------------------- ### Upgrade Meilisearch PHP SDK Dependency to 1.0 Source: https://github.com/laravel/scout/blob/10.x/UPGRADE.md Laravel Scout 10.x requires Meilisearch PHP SDK version 1.0. This snippet shows how to update the `meilisearch/meilisearch-php` dependency in your `composer.json` file to meet the new requirement. ```JSON "meilisearch/meilisearch-php": "^1.0", ``` -------------------------------- ### Update getScoutKeyName Method Signature in Laravel Scout 10.x Source: https://github.com/laravel/scout/blob/10.x/UPGRADE.md In Laravel Scout 10.x, the `getScoutKeyName` method no longer qualifies the key name with the table name. Applications overriding this method must ensure it returns an unqualified key name, such as 'id' instead of 'posts.id'. ```PHP public function getScoutKeyName() { - return 'posts.id'; + return 'id'; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.