protected function fullUrlWithoutQuery($keys)
    {
        if ($keys instanceof Arrayable) {
            $keys = $keys->toArray();
        }

        $keys = (array) $keys;

        $request = request();

        $query = $request->query();
        Arr::forget($query, $keys);

        $question = $request->getBaseUrl().$request->getPathInfo() == '/' ? '/?' : '?';

        return count($request->query()) > 0
            ? $request->url().$question.http_build_query($query)
            : $request->fullUrl();
    }
protected function fullUrlWithoutQuery($keys)
    {
        if ($keys instanceof Arrayable) {
            $keys = $keys->toArray();
        }

        $keys = (array) $keys;

        $request = request();

        $query = $request->query();
        Arr::forget($query, $keys);

        $question = $request->getBaseUrl().$request->getPathInfo() == '/' ? '/?' : '?';

        return count($request->query()) > 0
            ? $request->url().$question.http_build_query($query)
            : $request->fullUrl();
    }
protected function fullUrlWithoutQuery ( $ keys ) { if ( $ keys instanceof Arrayable ) { $ keys = $ keys -> toArray ( ) ; } $ keys = ( array ) $ keys ; $ request = request ( ) ; $ query = $ request -> query ( ) ; Arr :: forget ( $ query , $ keys ) ; $ question = $ request -> getBaseUrl ( ) . $ request -> getPathInfo ( ) == '/' ? '/?' : '?' ; return count ( $ request -> query ( ) ) > 0 ? $ request -> url ( ) . $ question . http_build_query ( $ query ) : $ request -> fullUrl ( ) ; }
Get full url without query strings.

@param Arrayable|array|string $keys

@return string
Get full url without query strings .