Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit 427dc32

Browse files
committed
Added Laravel package discovery feature
1 parent bfd8a66 commit 427dc32

File tree

3 files changed

+39
-60
lines changed

3 files changed

+39
-60
lines changed

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ There are information about Elasticsearch installation and the package usage exa
4242
The package has been tested in the following configuration:
4343

4444
* PHP version >= 7.0
45-
* Laravel Framework version >= 5.4
46-
* Elasticsearch version >= 5.2
45+
* Laravel Framework version >= 5.5
46+
* Elasticsearch version >= 5.5
4747

4848
## Installation
4949

@@ -53,15 +53,6 @@ Use composer to install the package:
5353
composer require babenkoivan/scout-elasticsearch-driver
5454
```
5555

56-
Once you've installed the package, you need to register service providers in the `config/app.php` file:
57-
58-
```php
59-
'providers' => [
60-
Laravel\Scout\ScoutServiceProvider::class,
61-
ScoutElastic\ScoutElasticServiceProvider::class
62-
]
63-
```
64-
6556
## Configuration
6657

6758
To configure the package you need to publish settings first:

composer.json

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
11
{
2-
"name": "babenkoivan/scout-elasticsearch-driver",
3-
"type": "library",
4-
"description": "The Elasticsearch Driver for Laravel Scout",
5-
"keywords": [
6-
"elastic",
7-
"elasticsearch",
8-
"driver",
9-
"engine",
10-
"laravel",
11-
"scout",
12-
"search"
13-
],
14-
"homepage": "https://babenkoivan.github.io/scout-elasticsearch-driver/",
15-
"license": "MIT",
16-
"authors": [
17-
{
18-
"name": "Babenko Ivan",
19-
"email": "[email protected]",
20-
"role": "Developer"
2+
"name": "babenkoivan/scout-elasticsearch-driver",
3+
"type": "library",
4+
"description": "The Elasticsearch Driver for Laravel Scout",
5+
"keywords": [
6+
"elastic",
7+
"elasticsearch",
8+
"driver",
9+
"engine",
10+
"laravel",
11+
"scout",
12+
"search"
13+
],
14+
"homepage": "https://babenkoivan.github.io/scout-elasticsearch-driver/",
15+
"license": "MIT",
16+
"authors": [
17+
{
18+
"name": "Babenko Ivan",
19+
"email": "[email protected]",
20+
"role": "Developer"
21+
}
22+
],
23+
"require": {
24+
"elasticsearch/elasticsearch": "^5.1",
25+
"laravel/scout": "^3.0"
26+
},
27+
"autoload": {
28+
"psr-4": {
29+
"ScoutElastic\\Tests\\": "tests/",
30+
"ScoutElastic\\": "src/"
31+
}
32+
},
33+
"extra": {
34+
"laravel": {
35+
"providers": [
36+
"ScoutElastic\\ScoutElasticServiceProvider"
37+
]
38+
}
2139
}
22-
],
23-
"require": {
24-
"elasticsearch/elasticsearch": "^5.1",
25-
"laravel/scout": "^3.0"
26-
},
27-
"autoload": {
28-
"psr-4": {
29-
"ScoutElastic\\Tests\\": "tests/",
30-
"ScoutElastic\\": "src/"
31-
}
32-
}
3340
}

src/SearchableModel.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)