/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $storylines = Storyline::orderBy('id', 'desc')->paginate(8);
     return view('pages.storylines', ['storylines' => $storylines]);
 }
Exemple #2
0
 /**
  * Show the application dashboard.
  *
  * @return Response
  */
 public function index()
 {
     // Check if there are any lines
     $storylines = Storyline::orderBy('id', 'desc')->take(4)->get();
     return view('pages.home', ['storylines' => $storylines]);
 }