コード例 #1
0
 public function desactivarContacto()
 {
     $input = Request::createFromGlobals();
     $contacto = Contacto::find($input->id);
     $contacto->estado = 'I';
     $contacto->save();
 }
コード例 #2
0
ファイル: ContactoController.php プロジェクト: elcuy/Novopan
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $record = Contacto::find($id)->delete();
     return new AjaxResponse('success', '');
 }