public function index() { $posts = $this->blog->all(setting('post_per_page')); $links = $posts->links(); return compact('posts', 'links'); }