File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ Laravel includes a variety of functions for manipulating string values. Many of
206
206
[ title] ( #method-fluent-str-title )
207
207
[ toBase64] ( #method-fluent-str-to-base64 )
208
208
[ toHtmlString] ( #method-fluent-str-to-html-string )
209
+ [ toUri] ( #method-fluent-str-to-uri )
209
210
[ transliterate] ( #method-fluent-str-transliterate )
210
211
[ trim] ( #method-fluent-str-trim )
211
212
[ ltrim] ( #method-fluent-str-ltrim )
@@ -3193,6 +3194,17 @@ use Illuminate\Support\Str;
3193
3194
$htmlString = Str::of('Nuno Maduro')->toHtmlString();
3194
3195
```
3195
3196
3197
+ <a name =" method-fluent-str-to-uri " ></a >
3198
+ #### ` toUri ` {.collection-method}
3199
+
3200
+ The ` toUri ` method converts the given string to an instance of [ Illuminate\Support\Uri] ( /docs/{{version}}/helpers#uri ) :
3201
+
3202
+ ``` php
3203
+ use Illuminate\Support\Str;
3204
+
3205
+ $uri = Str::of('https://example.com')->toUri();
3206
+ ```
3207
+
3196
3208
<a name =" method-fluent-str-transliterate " ></a >
3197
3209
#### ` transliterate ` {.collection-method}
3198
3210
You can’t perform that action at this time.
0 commit comments