Skip to content

Commit 28e4693

Browse files
authored
Update README.md
1 parent d5650c9 commit 28e4693

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
<img align="left" width="50" height="50" src="https://cdn.snipform.io/pdphilip/elasticsearch/laravel-x-es.png">
1+
<img align="left" width="70" height="70" src="https://cdn.snipform.io/pdphilip/elasticsearch/laravel-x-es.png">
22

3-
## Elasticsearch implementation of Laravel's Eloquent ORM
3+
# Laravel-Elasticsearch
44

5+
### An Elasticsearch implementation of Laravel's Eloquent ORM
56
This package extends Laravel's Eloquent model and query builder with seamless integration of Elasticsearch functionalities. Designed to feel native to Laravel, this package enables you to work with Eloquent models while leveraging the
67
powerful search and analytics capabilities of Elasticsearch.
78

9+
```php
10+
$logs = UserLog::where('type', UserLogType::LOGIN)->where('created_at','>=',Carbon::now()->subDays(30))->get();
11+
```
12+
813
### Read the [Documentation](https://elasticsearch.pdphilip.com/)
914

1015
---
@@ -129,11 +134,7 @@ return [
129134
];
130135
```
131136

132-
Now, you're all set to use Elasticsearch with Laravel as if it were native to the framework, ex:
133-
134-
```php
135-
$products = Product::where('manufacturer.country', 'England')->take(10)->get();
136-
```
137+
Now, you're all set to use Elasticsearch with Laravel as if it were native to the framework.
137138

138139
---
139140

0 commit comments

Comments
 (0)