diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index f1bec7cc3c56..551be496f6be 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -52,10 +52,10 @@ class QueryLogging $timeEnd = microtime(true); $time = $timeEnd - $timeStart; - nlog("Query count = {$count}"); + nlog("Query count = {$count}"); - //if($count > 250) - nlog($queries); + if($count > 250) + nlog($queries); $ip = ''; diff --git a/database/factories/DocumentFactory.php b/database/factories/DocumentFactory.php new file mode 100644 index 000000000000..60acb09af250 --- /dev/null +++ b/database/factories/DocumentFactory.php @@ -0,0 +1,39 @@ + true, + 'is_public' => true, + 'name' => true, + ]; + } +}