弹幕列表

This commit is contained in:
2022-07-12 10:45:20 +08:00
parent cd2ccdec87
commit 94dafde0a4
5 changed files with 59 additions and 2 deletions

View File

@ -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,
]);
}
}