protected function decodePusherResponse($request, $response)
    {
        if (! $request->input('callback', false)) {
            return json_decode($response, true);
        }

        return response()->json(json_decode($response, true))
                    ->withCallback($request->callback);
    }
protected function decodePusherResponse($request, $response)
    {
        if (! $request->input('callback', false)) {
            return json_decode($response, true);
        }

        return response()->json(json_decode($response, true))
                    ->withCallback($request->callback);
    }
protected function decodePusherResponse ( $ request , $ response ) { if ( ! $ request -> input ( 'callback' , false ) ) { return json_decode ( $ response , true ) ; } return response ( ) -> json ( json_decode ( $ response , true ) ) -> withCallback ( $ request -> callback ) ; }
Decode the given Pusher response.

@param  \Illuminate\Http\Request  $request
@param  mixed  $response
@return array
Decode the given Pusher response .