Esempio n. 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $record = Distribucion::find($id)->delete();
     return new AjaxResponse('success', '');
 }
 public function deleteLineaDistribucionDetallada()
 {
     $input = Request::createFromGlobals();
     $linea = DocumentoLinea::with('documento')->find($input->id_documento_linea);
     Distribucion::find($input->id)->delete();
     return $this->getDocumento($linea->documento->id);
 }