app/Http/Controllers/ClientChannelReferenceController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $clientID            = $request->ccrSource;
        $destinationClientID = $request->ccrDestination;
        $client_channelID    = $request->ccrclientChannelID;
        $code                = $request->ccrchannelCode;
        $queue_name          = $request->queue_name;
        $end_point           = $request->endpoint;
        $callback            = $request->callback;
        $senderid            = "";  
        $notifyCustomer      = "no"; 
        $status              = $request->ccrStatusCode;
        $clientChannelReference = new ClientChannelReference();
        $result = $clientChannelReference->addClientChannelReference($clientID, $destinationClientID, $client_channelID, $code, $queue_name, $end_point, $callback, $senderid, $notifyCustomer, $status);
        if($result) {
             \Session::flash('flash_message','New client channel reference created successfully.');
        } else {
             \Session::flash('error_message','Error in handling request.');
        }
        return redirect('client_channel_reference');
    }
public function store ( Request $ request ) { $ clientID = $ request -> ccrSource ; $ destinationClientID = $ request -> ccrDestination ; $ client_channelID = $ request -> ccrclientChannelID ; $ code = $ request -> ccrchannelCode ; $ queue_name = $ request -> queue_name ; $ end_point = $ request -> endpoint ; $ callback = $ request -> callback ; $ senderid = " " ; $ notifyCustomer = " no " ; $ status = $ request -> ccrStatusCode ; $ clientChannelReference = new ClientChannelReference ( ) ; $ result = $ clientChannelReference -> addClientChannelReference ( $ clientID , $ destinationClientID , $ client_channelID , $ code , $ queue_name , $ end_point , $ callback , $ senderid , $ notifyCustomer , $ status ) ; if ( $ result ) { \ Session :: flash ( 'flash_message' , 'New client channel reference created successfully.' ) ; } else { \ Session :: flash ( 'error_message' , 'Error in handling request.' ) ; } return redirect ( 'client_channel_reference' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//$request->senderid; //$request->notifyCustomer; // instantiate model class