File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,22 @@ This is the contents of the published config file:
32
32
33
33
``` php
34
34
return [
35
+ 'elasticsearch' => [
36
+ 'host' => env('ELASTICSEARCH_HOST', 'localhost'),
37
+ 'port' => env('ELASTICSEARCH_PORT', '9200'),
38
+ ],
39
+ 'indices' => [],
35
40
];
41
+
36
42
```
37
43
38
44
## Usage
39
45
40
- ``` php
41
- $laravel-elastica-bridge = new Limenet\LaravelElasticaBridge();
42
- echo $laravel-elastica-bridge->echoPhrase('Hello, Spatie!');
43
- ```
46
+ 1 . Add ` Limenet\LaravelElasticaBridge\Model\ElasticsearchableInterface ` and ` Limenet\LaravelElasticaBridge\Model\ElasticsearchableTrait ` to a model
47
+ 2 . Create a class extending ` Limenet\LaravelElasticaBridge\Index\AbstractIndex `
48
+ 3 . Add the index to your config (` elastica-bridge.indices ` )
49
+ 4 . Run ` php artisan elastica-bridge:index `
50
+ 5 . Check using ` php artisan elastica-bridge:status `
44
51
45
52
## Testing
46
53
You can’t perform that action at this time.
0 commit comments