You've already forked lubo_comment_query
补充亿点内容,顺便立Flag
This commit is contained in:
13
app/Http/Controllers/DanmakuQueryController.php
Normal file
13
app/Http/Controllers/DanmakuQueryController.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
|
||||
class DanmakuQueryController extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view("under_construct");
|
||||
}
|
||||
}
|
19
app/Http/Controllers/ProgramQueryController.php
Normal file
19
app/Http/Controllers/ProgramQueryController.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Programs;
|
||||
use App\Models\Tags;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
|
||||
class ProgramQueryController extends BaseController
|
||||
{
|
||||
public function index() {
|
||||
$keyword = request()->get("keyword", "");
|
||||
$programs = Programs::query()->with(["appends", "tags", "video_pivots.video"])->limit(15)->orderByDesc("created_at")->get();
|
||||
return view("program", [
|
||||
"keyword" => $keyword,
|
||||
"programs"=>$programs,
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user