From 4df96b5e62d0e7db098326ea699d88466387041e Mon Sep 17 00:00:00 2001 From: Daniel Mendes <28825568+Daniel-Mendes@users.noreply.github.com> Date: Sun, 6 Sep 2020 07:58:51 +0200 Subject: [PATCH] Change $this->app->environment() !== 'production' to $this->app->isLocal() (#886) * README.md: $this->app->environment() !== 'production' to $this->app->isLocal() * Renamed to README.md * Remove unrelated changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5cb9e45..3cd5e26 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If for some reason you want manually control this: ```php public function register() { - if ($this->app->environment() !== 'production') { + if ($this->app->isLocal()) { $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); } // ...