public function getIndex()
 {
     $newses = News::paginate(6);
     return view('news.newsIndex', compact('newses'));
 }
示例#2
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function home()
 {
     return View('home')->with('news', News::paginate(5));
 }