Skip to content

Commit

Permalink
Merge pull request barryvdh#469 from its-florida/fix/403
Browse files Browse the repository at this point in the history
Fixes barryvdh#403 - Need to reflash the session.
  • Loading branch information
barryvdh committed Feb 16, 2016
2 parents 8b785d2 + f5ddcaa commit 3f9a465
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

use Barryvdh\Debugbar\LaravelDebugbar;
use Illuminate\Routing\Controller;
use Illuminate\Http\Request;

if (class_exists('Illuminate\Routing\Controller')) {

class BaseController extends Controller
{
protected $debugbar;

public function __construct(LaravelDebugbar $debugbar)
public function __construct(Request $request, LaravelDebugbar $debugbar)
{
$this->debugbar = $debugbar;
$request->session()->reflash();
}
}

Expand All @@ -21,10 +23,10 @@ class BaseController
{
protected $debugbar;

public function __construct(LaravelDebugbar $debugbar)
public function __construct(Request $request, LaravelDebugbar $debugbar)
{
$this->debugbar = $debugbar;
$request->session()->reflash();
}
}
}

0 comments on commit 3f9a465

Please sign in to comment.