/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $article = Article::find($id); //栏目下拉框 $articleCats = ArticleCat::getSelectCats(); return view('admin.articles.edit')->with('article', $article)->with('articleCats', $articleCats); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $cats = ArticleCat::getSelectCats(); return view('admin.article_cats.edit')->with('articleCat', ArticleCat::find($id))->with('articleCats', $cats); }