Exemplo n.º 1
0
 public function deleteAction()
 {
     $Objdel = new Compra();
     $new = Input::all();
     if ($Objdel->validate(Input::get($this->key), $new, 3)) {
         $object = Compra::findOrFail(Input::get($this->key));
         $object->delete();
     }
     return Redirect::route($this->routeIndex);
 }