Change check on debugbar to use debug not environment

This commit is contained in:
Dane Everitt 2018-03-10 12:03:23 -06:00
parent dfb002fb33
commit ef371a508d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View file

@ -41,7 +41,7 @@ class SetSessionDriver
*/
public function handle(Request $request, Closure $next)
{
if ($this->app->environment() !== 'production') {
if ($this->config->get('app.debug')) {
$this->app->make(LaravelDebugbar::class)->disable();
}