From 94ad538c489e233b6a2cb3519552934507da61a6 Mon Sep 17 00:00:00 2001 From: pvankouteren Date: Fri, 16 Dec 2022 14:30:24 +0100 Subject: [PATCH] Clarification in readme to prevent issues in production situations when using --dev on composer require, ServiceProvider discovery fixed. --- README.md | 5 ++++- composer.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d9ed9c..0413984 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/composer.json b/composer.json index 4a33132..9f198d1 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "extra": { "laravel": { "providers": [ - "WeDesignIt\\LaravelPerformance\\LaravelPerformanceServiceProvider" + "WeDesignIt\\LaravelPerformance\\Providers\\LaravelPerformanceServiceProvider" ] } },