/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $this->setMetadata(); $articleCategory = new ArticleCategory(); $articlesSlide = $articleCategory->getArticlesByCategoryKey('slideshow-chinh', 5); $articlesHomepage = $articleCategory->getArticlesByCategoryKey('trang-chu', 20); $articlesSlideFooter = $articleCategory->getArticlesByCategoryKey('slideshow-footer', 10); return view('frontend.sites.index', ['articlesSlide' => $articlesSlide, 'articlesHomepage' => $articlesHomepage, 'articlesSlideFooter' => $articlesSlideFooter]); }