mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
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:
@@ -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);
|
||||||
}
|
}
|
||||||
// ...
|
// ...
|
||||||
|
|||||||
Reference in New Issue
Block a user