/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $operacion = Operacion::FindOrFail($id); $cliente = Cliente::lists('razonsocial', 'id'); return view('operaciones.opedit', compact('operacion', 'cliente')); }
public function venta($id) { $chequeven = Cheque::findOrFail($id); $clientes = Cliente::lists('razonsocial', 'id'); return view("cheques.venta", compact("chequeven", "clientes")); }
/** * Remove the specified resource from storage. * * @param int $id * * @return Response */ public function destroy($id) { Cliente::destroy($id); \Session::flash('message', 'Cliente Borrado!'); return redirect('clientes'); }