Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
wangta69 committed Sep 9, 2024
1 parent 16fd573 commit dc1387f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/BbsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ trait BbsTrait {
public function index(Request $request, $tbl_name)
{

\DB::enableQueryLog();
// \DB::enableQueryLog();
$preIndex = $this->preIndex($tbl_name);
$articles = $preIndex->articles;
$cfg = $preIndex->cfg;
Expand Down Expand Up @@ -86,7 +86,7 @@ public function index(Request $request, $tbl_name)

$articles = $articles->paginate($cfg->lists)
->appends(request()->query());
print_r(\DB::getQueryLog());
// print_r(\DB::getQueryLog());
return ['error'=> false, 'articles' =>$articles, 'cfg'=>$cfg];
}

Expand Down

0 comments on commit dc1387f

Please sign in to comment.