app/Http/Controllers/ClientChannelController.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)
    {
        $clientChannel = new ClientChannel();
        $client_channelID = $request->eclient_channelID;
        $clientID = $request->eclient;
        $channelID = $request->cechannelID;
        $client_channel_name = $request->eclientChannelName;
        $status = $request->eclientChannelStatusCode;
         $result = $clientChannel->updateClientChannel($client_channelID, $clientID, $channelID, $client_channel_name, $status);
         if($result) {
             \Session::flash('flash_message','Client channel details updated successfully.');
        } else {
             \Session::flash('error_message','Error in handling request.');
        }
        return redirect('client_channel');
    }
public function update ( Request $ request , $ id ) { $ clientChannel = new ClientChannel ( ) ; $ client_channelID = $ request -> eclient_channelID ; $ clientID = $ request -> eclient ; $ channelID = $ request -> cechannelID ; $ client_channel_name = $ request -> eclientChannelName ; $ status = $ request -> eclientChannelStatusCode ; $ result = $ clientChannel -> updateClientChannel ( $ client_channelID , $ clientID , $ channelID , $ client_channel_name , $ status ) ; if ( $ result ) { \ Session :: flash ( 'flash_message' , 'Client channel details updated successfully.' ) ; } else { \ Session :: flash ( 'error_message' , 'Error in handling request.' ) ; } return redirect ( 'client_channel' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
// instantiate model class // get params from post request ajax // redirect to index after save