/** * Home Page. * * @return \Illuminate\View\View */ public function home() { $works = PostsRepository::instance()->fetch(1, 30, ['*'], [], ['id' => 'DESC']); return view('frontend.pages.home', compact('works')); }
/** * Home Page. * * @return \Illuminate\View\View */ public function home() { $works = PostsRepository::instance()->all(); return view('frontend.pages.home', compact('works')); }