app/Http/Controllers/PlanController.php
/**
	 * Update the specified resource in storage.
	 *
	 * @param  int  $id
	 * @return Response
	 */
Update the specified resource in storage.
@param  int  $id
@return Response
Update the specified resource in storage . @param int $id @return Response
public function update($id, PlanRequest $request)
	{
		DB::update("UPDATE planes SET t_plan = ROW('$request->nombre', $request->renta, $request->minutos_incluidos, $request->minutos_compania, $request->minutos_indistintos, $request->sms, $request->sms_indistintos, $request->sms_compania, $request->internet, $request->numeros_frecuentes, '$request->conexion_directa', '$request->compania', '$request->controlado') WHERE id=$id");
		return redirect('planes');
	}
public function update ( $ id , PlanRequest $ request ) { DB :: update ( " UPDATE planes SET t_plan = ROW(' $ request -> nombre ',  $ request -> renta ,  $ request -> minutos_incluidos ,  $ request -> minutos_compania ,  $ request -> minutos_indistintos ,  $ request -> sms ,  $ request -> sms_indistintos ,  $ request -> sms_compania ,  $ request -> internet ,  $ request -> numeros_frecuentes , ' $ request -> conexion_directa ', ' $ request -> compania ', ' $ request -> controlado ') WHERE id= $ id " ) ; return redirect ( 'planes' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .