Esempio n. 1
0
 /**
  * Active the specified resource from storage.
  *
  * @param int $id
  *
  * @return \Illuminate\Http\Response
  */
 public function active(Request $request)
 {
     $CategoryID = $request->route('category');
     $affectedRows = Category::where('id', $CategoryID)->update(['is_active' => 1]);
     return redirect()->route('cpanel.category.index');
 }