Change check on debugbar to use debug not environment
This commit is contained in:
parent
dfb002fb33
commit
ef371a508d
2 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue