添加建设内容

This commit is contained in:
2022-07-29 10:45:13 +08:00
parent d0e816ec6e
commit 4f31bd50c3
17 changed files with 446 additions and 23 deletions

View File

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