diff --git a/config/debugbar.php b/config/debugbar.php index c7c9ceee..72ccd7bd 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -143,7 +143,7 @@ 'timeline' => false, // Add the queries to the timeline 'explain' => [ // Show EXPLAIN output on queries 'enabled' => false, - 'types' => ['SELECT'], // ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+ + 'types' => ['SELECT'], // // workaround ['SELECT'] only. https://github.com/barryvdh/laravel-debugbar/issues/888 ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+ ], 'hints' => true, // Show hints for common mistakes ], diff --git a/src/DataCollector/QueryCollector.php b/src/DataCollector/QueryCollector.php index 5aa239db..1686744f 100644 --- a/src/DataCollector/QueryCollector.php +++ b/src/DataCollector/QueryCollector.php @@ -70,9 +70,10 @@ public function setFindSource($value, array $middleware) public function setExplainSource($enabled, $types) { $this->explainQuery = $enabled; - if($types){ - $this->explainTypes = $types; - } + // workaround ['SELECT'] only. https://github.com/barryvdh/laravel-debugbar/issues/888 +// if($types){ +// $this->explainTypes = $types; +// } } /**