/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $posts = $this->repository->paginate(10); return view('admin/posts/index', compact('posts')); }
/** * 文章列表. * * @return mixed */ public function index() { $articles = $this->postRepository->paginate(); return user_view('docment.index', compact('articles')); }