Skip to content

Commit e99923d

Browse files
authored
Merge pull request #29 from ans-group/package-discovery
Add support for package auto discovery
2 parents a3e77bd + cdeb6f8 commit e99923d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ First, use composer to require the package as below:
1414
composer require ukfast/laravel-sieve
1515
```
1616

17-
Then all we need to do is to register the service provider in the `providers` key in ``config/app.php`:
17+
In Laravel the service provider will be automatically discovered.
18+
19+
If you are using Lumen you will need to register the service provider in the `providers` key in `config/app.php`:
1820

1921
```
2022
UKFast\Sieve\SieveServiceProvider::class,

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,12 @@
2828
"require-dev": {
2929
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
3030
"phpunit/phpunit": "^8.5|^9.3"
31+
},
32+
"extra": {
33+
"laravel": {
34+
"providers": [
35+
"UKFast\\Sieve\\SieveServiceProvider"
36+
]
37+
}
3138
}
3239
}

0 commit comments

Comments
 (0)