The issue seems to be with the URL format being used by the Meilisearch client. The error message suggests that the URL being used is missing the scheme (http or https).
To fix this, update the MEILISEARCH_PATH value in the .env file to include the scheme. For example, change:
MEILISEARCH_PATH=http://localhost:7700
to:
MEILISEARCH_PATH=http://127.0.0.1:7700
Alternatively, you can update the scout.php configuration file to include the scheme:
'meilisearch' => [
'host' => env('MEILISEARCH_PATH', 'http://localhost:7700'),
],
to:
'meilisearch' => [
'host' => env('MEILISEARCH_PATH', 'http://127.0.0.1:7700'),
],
After making these changes, try running the php artisan scout:import command again and see if it works.