Added lazy loading to creator videos page and other fixes

This commit is contained in:
Fritz Ramirez
2024-04-03 17:15:15 +08:00
parent 04572bbfa0
commit aaf1f4da62
13 changed files with 112 additions and 11 deletions
@@ -48,7 +48,7 @@ class FrontendController extends Controller
public function creatorVideos(Request $request, Creator $creator)
{
$videos = Videos::getByCreator($creator);
$videos = Videos::getByCreator($creator, Video::LAZY_LOAD_ITEM_COUNT);
return view('frontend::creator-videos', compact('creator', 'videos'));
}