/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function published() { $articles = $this->articleRepository->published()->paginate(10); return view('cms.articles.index', compact('articles')); }
/** * Display a listing of the news resource. * * @return \Illuminate\Http\Response */ public function news() { $articles = $this->articleRepository->published()->paginate(6); return view('ahk.health.news', compact('articles')); }