Skip to content

Commit

Permalink
Merge pull request barryvdh#589 from kamui545/fix-views-tab
Browse files Browse the repository at this point in the history
[L5.4] Fix views tab
  • Loading branch information
barryvdh authored Jan 18, 2017
2 parents 2f59ddf + 8e0794b commit 4d9e7df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ function () use ($debugbar) {
$this->addCollector(new ViewCollector($collectData));
$this->app['events']->listen(
'composing:*',
function ($view) use ($debugbar) {
function ($view, $data = []) use ($debugbar) {
if ($data) {
$view = $data[0]; // For Laravel >= 5.4
}
$debugbar['views']->addView($view);
}
);
Expand Down

0 comments on commit 4d9e7df

Please sign in to comment.