I am using laravel elastic search package. In Scout.php file. I am giving index laravel which is working with one model staff but not working with other models.
scout.php
'elasticsearch' => [
'index' => env('ELASTICSEARCH_INDEX', 'laravel'),
'config' => [
'hosts' => [
env('ELASTICSEARCH_HOST', 'http://localhost'),
],
],
In models i am using
public function searchableAs()
{
return 'customer';
}
When Give customer
in scoute.php index then it works fine. but i wan to use it for all models
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire