Skip to content

Commit d98f079

Browse files
authored
Update README.md
1 parent 5c82489 commit d98f079

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
11
# laravel-elastic
2+
3+
Elasticsearch Fluent interface for Laravel5
4+
5+
Now just have a very rough version impelements elasticsearch's basic search functionality.
6+
7+
### Installation
8+
9+
1. get package from packagist
10+
11+
```
12+
composer requrire kevinyan/laravel-elastic 0.0.1
13+
```
14+
15+
2. register service provider and facade in 'app.php'
16+
17+
```
18+
'providers' => [
19+
...
20+
KevinYan\Elastic\Providers\ElasticServiceProvider::class,
21+
22+
]
23+
24+
'aliases' => [
25+
...
26+
'Elastic' => KevinYan\Elastic\Facades\Elastic::class
27+
]
28+
29+
```
30+
31+
32+
3. publish elasitc.php into project's config directory
33+
34+
```
35+
php artisan vendor:publish --provider="KevinYan\Elastic\Providers\ElasticServiceProvider"
36+
```

0 commit comments

Comments
 (0)