/** * Display a listing of the resource. * * @return Response */ public function index() { $posts = Post::getPages()->paginate(10); return view('cms::post.pages', compact('posts')); }