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