Skip to content

Commit

Permalink
Clarification in readme to prevent issues in production situations wh…
Browse files Browse the repository at this point in the history
…en using --dev on composer require, ServiceProvider discovery fixed.
  • Loading branch information
pvankouteren committed Dec 16, 2022
1 parent a1bcf11 commit 94ad538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ This performance package (currently) contains two configurable performance relat

## Include the package

For dev-only use:
For dev-only (be sure to read the note below) use:

`composer require --dev wedesignit/laravel-performance`

!! Note that if you use the `ContainsUnEagerLoadableRelations` trait in your code, this will cause errors in
production. You might want to require the package (without `--dev`) !!

For using it on other environments too:

`composer require wedesignit/laravel-performance`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"extra": {
"laravel": {
"providers": [
"WeDesignIt\\LaravelPerformance\\LaravelPerformanceServiceProvider"
"WeDesignIt\\LaravelPerformance\\Providers\\LaravelPerformanceServiceProvider"
]
}
},
Expand Down

0 comments on commit 94ad538

Please sign in to comment.