Merge pull request #388 from KarimGeiger/master

Fix "Using $this when not in object context" bug
This commit is contained in:
Barry vd. Heuvel
2016-09-07 15:05:31 +02:00
committed by GitHub
+2 -2
View File
@@ -200,8 +200,8 @@ You can install Laravel IDE Helper in `app/Providers/AppServiceProvider.php`, an
If you are not using that line, that is usually handy to manage gracefully multiple Laravel/Lumen installations, you will have to add this line of code under the `Register Service Providers` section of your `bootstrap/app.php`. If you are not using that line, that is usually handy to manage gracefully multiple Laravel/Lumen installations, you will have to add this line of code under the `Register Service Providers` section of your `bootstrap/app.php`.
```php ```php
if ($this->app->environment() !== 'production') { if ($app->environment() !== 'production') {
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); $app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
} }
``` ```