/**
  * Remove the specified resource from storage.
  *
  * @param $id
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
  */
 public function destroy($id)
 {
     Categories::destroy($id);
     \Session::flash('success', 'Category deleted');
     return redirect('/categories');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Categories::destroy($id);
     return redirect('categories');
 }
Пример #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Categories::destroy($id);
     return Redirect()->back();
 }