Then I try to import models in elasticsearch using below command
sail artisan scout:import 'App\Models\Product'
I receive below error
Class "ScoutEngines\Elasticsearch\ElasticsearchProvider" not found
If I remove 'ElasticsearchProvider' class from 'config/app.php', I get below error
Elastic\Elasticsearch\ClientBuilder::setHosts(): Argument #1 ($hosts) must be of type array, null given, called in /var/www/html/vendor/tamayo/laravel-scout-elastic/src/LaravelScoutElasticProvider.php on line 23
Stack Versions
Laravel : 9.19 Laravel Scout : 9.4 elasticsearch/elasticsearch: 8.4 tamayo/laravel-scout-elastic: 8.1
I installed everything, then I placed below service providers in "config/app.php"
Then I try to import models in elasticsearch using below command
sail artisan scout:import 'App\Models\Product'
I receive below error
Class "ScoutEngines\Elasticsearch\ElasticsearchProvider" not found
If I remove 'ElasticsearchProvider' class from 'config/app.php', I get below error
Elastic\Elasticsearch\ClientBuilder::setHosts(): Argument #1 ($hosts) must be of type array, null given, called in /var/www/html/vendor/tamayo/laravel-scout-elastic/src/LaravelScoutElasticProvider.php on line 23