public function desactivarContacto()
 {
     $input = Request::createFromGlobals();
     $contacto = Contacto::find($input->id);
     $contacto->estado = 'I';
     $contacto->save();
 }
Пример #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $record = Contacto::find($id)->delete();
     return new AjaxResponse('success', '');
 }