Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     if ($result = check_auth_to('FLGL_EDIT')) {
         return $result;
     }
     $data['categoryTreeList'] = Category::getCategoryTree();
     $data['categoryInfo'] = Category::find($id);
     return view('admin.category.edit', $data);
 }
Example #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     if ($result = check_auth_to('WZGL_EDIT')) {
         return $result;
     }
     $data['categoryTreeList'] = Category::getCategoryTree();
     $data['articleInfo'] = Article::find($id);
     $data['tagsList'] = Tags::all();
     $data['articleInfo']->tags = Tags::getTagsName($data['articleInfo']->tags);
     return view('admin.article.edit', $data);
 }