Skip to content

Commit 0272b78

Browse files
committed
wip
1 parent f25bb47 commit 0272b78

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎strings.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ Laravel includes a variety of functions for manipulating string values. Many of
206206
[title](#method-fluent-str-title)
207207
[toBase64](#method-fluent-str-to-base64)
208208
[toHtmlString](#method-fluent-str-to-html-string)
209+
[toUri](#method-fluent-str-to-uri)
209210
[transliterate](#method-fluent-str-transliterate)
210211
[trim](#method-fluent-str-trim)
211212
[ltrim](#method-fluent-str-ltrim)
@@ -3193,6 +3194,17 @@ use Illuminate\Support\Str;
31933194
$htmlString = Str::of('Nuno Maduro')->toHtmlString();
31943195
```
31953196

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+
31963208
<a name="method-fluent-str-transliterate"></a>
31973209
#### `transliterate` {.collection-method}
31983210

0 commit comments

Comments
 (0)