/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Zone::destroy($id);
     return redirect('/admin/zone');
 }
Example #2
0
 public function postRemove()
 {
     if (\Auth::user()->role != "admin") {
         abort(401);
     }
     \App\Zone::destroy(\Input::get("id"));
     return $this->getAllZones();
 }