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
This commit is contained in:
Daniel Mendes
2020-09-06 07:58:51 +02:00
committed by GitHub
parent 3a22b8daf6
commit 4df96b5e62
+1 -1
View File
@@ -52,7 +52,7 @@ If for some reason you want manually control this:
```php ```php
public function register() public function register()
{ {
if ($this->app->environment() !== 'production') { if ($this->app->isLocal()) {
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
} }
// ... // ...