Skip to content

Commit 3eb2cbe

Browse files
authored
Update ApiController.php
1 parent ff97a0d commit 3eb2cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function __construct()
131131
$this->table = call_user_func([new $this->model(), "getTable"]);
132132
}
133133

134-
if (env("APP_DEBUG") == true) {
134+
if (config('app.debug') == true) {
135135
\DB::enableQueryLog();
136136
}
137137
}
@@ -697,7 +697,7 @@ protected function getMetaData($single = false)
697697

698698
$meta["time"] = round(microtime(true) - $this->processingStartTime, 3);
699699

700-
if (env("APP_DEBUG") == true) {
700+
if (config('app.debug') == true) {
701701
$log = \DB::getQueryLog();
702702
\DB::disableQueryLog();
703703

0 commit comments

Comments
 (0)