Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     //
     $catArr = Category::getCategoryTree();
     unset($catArr[0]);
     return backendView('edit', ['article' => Article::find($id), 'catArr' => $catArr]);
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     //
     return backendView('create', ['catArr' => Category::getCategoryTree()]);
 }