Skip to content

Commit 6fe580f

Browse files
authored
TWeak defaults, remove deprecated option (barryvdh#1650)
1 parent ed37d1a commit 6fe580f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

config/debugbar.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,9 @@
218218
'duration_background' => true, // Show shaded background on each query relative to how long it took to execute.
219219
'explain' => [ // Show EXPLAIN output on queries
220220
'enabled' => false,
221-
'types' => ['SELECT'], // Deprecated setting, is always only SELECT
222221
],
223-
'hints' => false, // Show hints for common mistakes
224-
'show_copy' => false, // Show copy button next to the query,
222+
'hints' => false, // Show hints for common mistakes
223+
'show_copy' => true, // Show copy button next to the query,
225224
'slow_threshold' => false, // Only track queries that last longer than this time in ms
226225
'memory_usage' => false, // Show queries memory usage
227226
'soft_limit' => 100, // After the soft limit, no parameters/backtrace are captured

src/DataCollector/QueryCollector.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ public function setDurationBackground($enabled = true)
128128
public function setExplainSource($enabled, $types)
129129
{
130130
$this->explainQuery = $enabled;
131-
// workaround ['SELECT'] only. https://github.com/barryvdh/laravel-debugbar/issues/888
132-
// if($types){
133-
// $this->explainTypes = $types;
134-
// }
135131
}
136132

137133
public function startMemoryUsage()

0 commit comments

Comments
 (0)