/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $guiasalida = Proveedor::find($id); $guiasalida->delete(); return \Response::json(array('datos' => Proveedor::all())); }
protected function getListarProveedor() { $proveedores = Proveedor::all(); //print_r($cavas); return view('Proveedor/listarProveedor', compact('proveedores')); }
public function getAllProveedores() { return Response::json(Proveedor::all()); }