app/Http/Controllers/ClientChannelReferenceController.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)
    {
    	$channelRefId        = $request->echannel_ref_id;
        $clientID            = $request->eccrSource;
        $destinationClientID = $request->eccrDestination;
        $client_channelID    = $request->eccrclientChannelID;
        $code                = $request->eccrchannelCode;
        $queue_name          = $request->equeue_name;
        $end_point           = $request->eendpoint;
        $callback            = $request->ecallback;
        $senderid            = "";  
        $notifyCustomer      = "no"; 
        $status              = $request->eccrStatusCode;
        $clientChannelReference = new ClientChannelReference();
    	$result = $clientChannelReference->updateClientChannelReference($channelRefId, $clientID, $destinationClientID, $client_channelID, $code, $queue_name, $end_point, $callback, $senderid, $notifyCustomer, $status);
    	if($result) {
             \Session::flash('flash_message','Client channel reference details updated successfully.');
        } else {
             \Session::flash('error_message','Error in handling request.');
        }
        return redirect('client_channel_reference');
    }
public function update ( Request $ request , $ id ) { $ channelRefId = $ request -> echannel_ref_id ; $ clientID = $ request -> eccrSource ; $ destinationClientID = $ request -> eccrDestination ; $ client_channelID = $ request -> eccrclientChannelID ; $ code = $ request -> eccrchannelCode ; $ queue_name = $ request -> equeue_name ; $ end_point = $ request -> eendpoint ; $ callback = $ request -> ecallback ; $ senderid = " " ; $ notifyCustomer = " no " ; $ status = $ request -> eccrStatusCode ; $ clientChannelReference = new ClientChannelReference ( ) ; $ result = $ clientChannelReference -> updateClientChannelReference ( $ channelRefId , $ clientID , $ destinationClientID , $ client_channelID , $ code , $ queue_name , $ end_point , $ callback , $ senderid , $ notifyCustomer , $ status ) ; if ( $ result ) { \ Session :: flash ( 'flash_message' , 'Client channel reference details updated successfully.' ) ; } else { \ Session :: flash ( 'error_message' , 'Error in handling request.' ) ; } return redirect ( 'client_channel_reference' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//$request->senderid; //$request->notifyCustomer; // instantiate model class // redirect to index after save