From 74e94075b52f648dcc7e894f6af2183616001f1f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 4 Sep 2021 17:49:42 +1000 Subject: [PATCH 1/2] disable query logging --- app/Http/Middleware/QueryLogging.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = ''; From 2f7804b177b5bd64c45c5059c80fc65725d7ce61 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 4 Sep 2021 17:53:47 +1000 Subject: [PATCH 2/2] Document Factory --- database/factories/DocumentFactory.php | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/factories/DocumentFactory.php 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, + ]; + } +}