Skip to content

Commit

Permalink
Merge pull request #29 from ans-group/package-discovery
Browse files Browse the repository at this point in the history
Add support for package auto discovery
  • Loading branch information
Gman98ish authored Jan 11, 2023
2 parents a3e77bd + cdeb6f8 commit e99923d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ First, use composer to require the package as below:
composer require ukfast/laravel-sieve
```

Then all we need to do is to register the service provider in the `providers` key in ``config/app.php`:
In Laravel the service provider will be automatically discovered.

If you are using Lumen you will need to register the service provider in the `providers` key in `config/app.php`:

```
UKFast\Sieve\SieveServiceProvider::class,
Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,12 @@
"require-dev": {
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
"phpunit/phpunit": "^8.5|^9.3"
},
"extra": {
"laravel": {
"providers": [
"UKFast\\Sieve\\SieveServiceProvider"
]
}
}
}

0 comments on commit e99923d

Please sign in to comment.