/** * Display a listing of the posts. * * @return \Illuminate\View\View */ public function index() { $posts = PostRepository::paginate(); $links = PostRepository::links(); return View::make('posts.index', ['posts' => $posts, 'links' => $links]); }