You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must add the Scout service provider and the package service provider in your app.php config:
29
+
If you're using Laravel 5.4, you must add the Scout service provider and the package service provider in your app.php config:
23
30
24
31
```php
25
32
// config/app.php
@@ -31,12 +38,9 @@ You must add the Scout service provider and the package service provider in your
31
38
],
32
39
```
33
40
34
-
### Setting up Elasticsearch configuration
35
-
You must have a Elasticsearch server up and running with the index you want to use created
41
+
### Add the elastic search configuration
36
42
37
-
If you need help with this please refer to the [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)
38
-
39
-
After you've published the Laravel Scout package configuration:
43
+
Add the following to your scout configuration:
40
44
41
45
```php
42
46
// config/scout.php
@@ -45,7 +49,6 @@ After you've published the Laravel Scout package configuration:
45
49
46
50
...
47
51
'elasticsearch' => [
48
-
'index' => env('ELASTICSEARCH_INDEX', 'laravel'),
49
52
'hosts' => [
50
53
env('ELASTICSEARCH_HOST', 'http://localhost'),
51
54
],
@@ -55,9 +58,11 @@ After you've published the Laravel Scout package configuration:
55
58
56
59
## Usage
57
60
58
-
Now you can use Laravel Scout as described in the [official documentation](https://laravel.com/docs/5.3/scout)
61
+
Now you can use Laravel Scout as described in the [official documentation](https://laravel.com/docs/5.8/scout)
0 commit comments