建设支持分页,节目列表添加开打时间,暂时停止使用cdn

This commit is contained in:
2022-07-31 11:19:23 +08:00
parent 315f3e6cce
commit 16fba66527
6 changed files with 12 additions and 5 deletions

View File

@ -10,7 +10,8 @@ class ProgramConstructController extends BaseController
{
public function construct(Request $request) {
$status = $request->get("status", "0");
$programs = Programs::query()->with(["appends", "video_pivots.video"])->where("status", $status, 0)->limit(15)->orderByDesc("created_at")->get();
$query = Programs::query()->with(["appends", "video_pivots.video"])->where("status", $status, 0)->orderByDesc("created_at");
$programs = $query->paginate(10)->withQueryString();;
return view("program.construct.index", [
"programs"=>$programs,
]);