Skip to content

Commit 692e56a

Browse files
committed
updated README
1 parent c11ff2d commit 692e56a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,22 @@ This is the contents of the published config file:
3232

3333
```php
3434
return [
35+
'elasticsearch' => [
36+
'host' => env('ELASTICSEARCH_HOST', 'localhost'),
37+
'port' => env('ELASTICSEARCH_PORT', '9200'),
38+
],
39+
'indices' => [],
3540
];
41+
3642
```
3743

3844
## Usage
3945

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`
4451

4552
## Testing
4653

0 commit comments

Comments
 (0)