Skip to content

Commit 98b2e46

Browse files
committed
updated for Laravel 5.5+
1 parent 5ff47fa commit 98b2e46

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66

77
You can install via composer:
88

9+
### Laravel 5.5+
910
```bash
1011
$ composer require duuany/eloquent-filters
1112
```
1213

14+
###Laravel 5.4 or above
15+
```bash
16+
$ composer require duuany/eloquent-filters:1.1
17+
```
18+
1319
Add the service provider to your config/app.php
1420

1521
````php

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
}
1111
],
1212
"require": {
13-
"illuminate/support": "5.4.*"
13+
"illuminate/support": "5.5.*"
1414
},
1515
"require-dev": {
1616
"fzaninotto/faker": "~1.4",
1717
"mockery/mockery": "0.9.*",
1818
"orchestra/database": "^3.4",
1919
"orchestra/testbench": "^3.4",
20-
"phpunit/phpunit": "~5.7"
20+
"phpunit/phpunit": "~6.0"
2121
},
2222
"autoload": {
2323
"psr-4": {
@@ -28,5 +28,12 @@
2828
"psr-4": {
2929
"Duuany\\EloquentFilters\\Tests\\": "tests/"
3030
}
31+
},
32+
"extra": {
33+
"laravel": {
34+
"providers": [
35+
"Duuany\\EloquentFilters\\EloquentFiltersServiceProvider"
36+
]
37+
}
3138
}
3239
}

src/Console/MakeFilterCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(Application $app)
6161
*
6262
* @return void
6363
*/
64-
public function fire()
64+
public function handle()
6565
{
6666
$this->path = $this->app['config']->get('filters.path');
6767
$this->namespace = $this->app['config']->get('filters.namespace');

tests/FilterTest.php renamed to tests/MakeFilterCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Duuany\EloquentFilters\Tests\Support\AnotherFilters;
1919
use Duuany\EloquentFilters\Exceptions\EloquentFiltersException;
2020

21-
class FilterTest extends TestCase
21+
class MakeFilterCommandTest extends TestCase
2222
{
2323
use DatabaseMigrations;
2424

0 commit comments

Comments
 (0)