meilisearch / meilisearch-php

PHP wrapper for the Meilisearch API

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class "MeiliSearch\MeiliSearch" not found

francoism90 opened this issue · comments

Description
php artisan scout:import <model-class>

"laravel/scout": "^9.7",
"meilisearch/meilisearch-php": "^0.26.1",

Expected behavior
Use Meilisearch\Meilisearch on Laravel Scout

Current behavior
Uses wrong class.

Screenshots or Logs
If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

  • OS: Linux
  • Meilisearch version: latest
  • meilisearch-php version: 0.26.1

@francoism90 I have a PR to fix this #441

It's not clear to me whether the breaking change was intensional. If it was intentional and is going to be permanent, the README me and version should be updated

@francoism90 if you need a workaround you can composer require meilisearch/meilisearch-php "0.26.0". The breaking change happened with 0.26.1

Hi @francoism90.

I released a new version v0.27.0, where you can use the correct class names, the change was intentional, but the breaking was not.

You can check these links for more info #441, #431.

Sorry for the inconvenience.