Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $page = Page::find(1);
     $news = News::news()->paginate(5);
     $newsTitles = News::news()->take(3)->get();
     return view('news')->with(['page' => $page, 'news' => $news, 'newsTitles' => $newsTitles]);
 }