rawurlencode
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
URL-encode according to RFC 3986
rawurlencode
(
string $string
):
string
$uri
=
strtr
(
rawurlencode
(
$uri
),
$this
->
dontEncode
);
if (!
$absolute
) {
$uri
=
preg_replace
(
'#^(//|[^/?])+#'
,
''
,
$uri
);
src/Illuminate/Routing/RouteUrlGenerator.php