样式,排序,翻页保留查询条件,继续抽象

This commit is contained in:
2022-07-30 11:53:48 +08:00
parent b9a46390e0
commit 33af2c5713
9 changed files with 37 additions and 92 deletions

View File

@ -12,7 +12,7 @@ class ProgramQueryController extends BaseController
$keyword = $request->get("keyword", "");
$programs = Programs::query()->with(["appends", "video_pivots.video"])
->where("status", "=", 1)->limit(15)->orderByDesc("created_at")
->paginate();
->paginate(10)->withQueryString();
return view("program.index", [
"keyword" => $keyword,
"programs"=>$programs,