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