diff --git a/config/debugbar.php b/config/debugbar.php index 86a82d43..dc905149 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -171,7 +171,7 @@ 'route' => false, // Current route information 'auth' => false, // Display Laravel authentication status 'gate' => true, // Display Laravel Gate checks - 'session' => true, // Display session data + 'session' => false, // Display session data 'symfony_request' => true, // Only one can be enabled.. 'mail' => true, // Catch mail messages 'laravel' => true, // Laravel version and environment diff --git a/src/DataCollector/RequestCollector.php b/src/DataCollector/RequestCollector.php index ab60819b..e88b5c97 100644 --- a/src/DataCollector/RequestCollector.php +++ b/src/DataCollector/RequestCollector.php @@ -72,6 +72,10 @@ public function getWidgets() "widget" => "PhpDebugBar.Widgets.HtmlVariableListWidget", "map" => "request.data", "default" => "{}" + ], + 'request:badge' => [ + "map" => "request.badge", + "default" => "" ] ]; @@ -200,7 +204,8 @@ public function collect() return [ 'data' => $htmlData + $data, - 'tooltip' => array_filter($tooltip) + 'tooltip' => array_filter($tooltip), + 'badge' => $statusCode >= 300 ? $data['status'] : null, ]; }