Skip to content

Commit

Permalink
Only reflash when session is set
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Feb 17, 2016
1 parent 3f9a465 commit 515cb00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 9 additions & 3 deletions src/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ class BaseController extends Controller
public function __construct(Request $request, LaravelDebugbar $debugbar)
{
$this->debugbar = $debugbar;
$request->session()->reflash();

if ($request->hasSession()){
$request->session()->reflash();
}
}
}

Expand All @@ -26,7 +29,10 @@ class BaseController
public function __construct(Request $request, LaravelDebugbar $debugbar)
{
$this->debugbar = $debugbar;
$request->session()->reflash();

if ($request->hasSession()){
$request->session()->reflash();
}
}
}
}
}
4 changes: 0 additions & 4 deletions src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ public function boot()
return;
}

if ($this->isDebugbarRequest() && $this->app->bound(SessionManager::class)) {
$this->app->make(SessionManager::class)->reflash();
}

/** @var \Barryvdh\Debugbar\LaravelDebugbar $debugbar */
$debugbar = $this;

Expand Down

0 comments on commit 515cb00

Please sign in to comment.