protected function getTargetUrl($request)
    {
        $queries = Arr::except($request->query(), ['code', 'state']);

        return $request->url().(empty($queries) ? '' : '?'.http_build_query($queries));
    }
protected function getTargetUrl($request)
    {
        $queries = Arr::except($request->query(), ['code', 'state']);

        return $request->url().(empty($queries) ? '' : '?'.http_build_query($queries));
    }
protected function getTargetUrl ( $ request ) { $ queries = Arr :: except ( $ request -> query ( ) , [ 'code' , 'state' ] ) ; return $ request -> url ( ) . ( empty ( $ queries ) ? '' : '?' . http_build_query ( $ queries ) ) ; }
Build the target business url.

@param Request $request

@return string
Build the target business url .