/**
  * 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'));
 }
Beispiel #2
0
 /**
  * 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'));
 }