app/Http/Controllers/SaleschannelController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $saleschannel=saleschannel::find($id);
         $saleschannel->brand=$request->brand;
        $saleschannel->channelid=$request->channelid;
        $saleschannel->channelcost=$request->channelcost;
        $saleschannel->save();
        return redirect('/psetup/salechannels');
    }
public function update ( Request $ request , $ id ) { $ saleschannel = saleschannel :: find ( $ id ) ; $ saleschannel -> brand = $ request -> brand ; $ saleschannel -> channelid = $ request -> channelid ; $ saleschannel -> channelcost = $ request -> channelcost ; $ saleschannel -> save ( ) ; return redirect ( '/psetup/salechannels' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .