You've already forked lubo_comment_query
弹幕列表
This commit is contained in:
@ -2,12 +2,16 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Videos;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
|
||||
class DanmakuQueryController extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view("under_construct");
|
||||
$video_list = Videos::query()->withCount("danmakus")->orderByDesc("created_at")->limit(20)->get();
|
||||
return view("danmaku", [
|
||||
"video_list" => $video_list,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user