liquidRenderer = $liquidRenderer; } /** * Display a listing of the videos. * * @return \Illuminate\Http\Response */ public function index() { $videos = Video::paginate(10); // 每页显示10个视频 return $this->liquidRenderer->render('videos.index', ['videos' => $videos]); } /** * Display the specified video. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $video = Video::findOrFail($id); return $this->liquidRenderer->render('videos.show', ['video' => $video]); } }