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