File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed
Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 66
77You 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+
1319Add the service provider to your config/app.php
1420
1521```` php
Original file line number Diff line number Diff line change 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" : {
2828 "psr-4" : {
2929 "Duuany\\ EloquentFilters\\ Tests\\ " : " tests/"
3030 }
31+ },
32+ "extra" : {
33+ "laravel" : {
34+ "providers" : [
35+ " Duuany\\ EloquentFilters\\ EloquentFiltersServiceProvider"
36+ ]
37+ }
3138 }
3239}
Original file line number Diff line number Diff 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 ' );
Original file line number Diff line number Diff line change 1818use Duuany \EloquentFilters \Tests \Support \AnotherFilters ;
1919use Duuany \EloquentFilters \Exceptions \EloquentFiltersException ;
2020
21- class FilterTest extends TestCase
21+ class MakeFilterCommandTest extends TestCase
2222{
2323 use DatabaseMigrations;
2424
You can’t perform that action at this time.
0 commit comments