Skip to content

Update strings.md #705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion strings.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
git: 37b513606d6566439920facd4603b6b251dea105
git: 84bd53af8e3f11d494d66b1b2f0adf7abb7c507f
---

# Строки
Expand Down Expand Up @@ -877,6 +877,20 @@ $isUuid = Str::isUuid('laravel');
// false
```

Вы также можете проверить, соответствует ли заданный UUID спецификации UUID по версии (1, 3, 4, 5, 6, 7 или 8):

```php
use Illuminate\Support\Str;

$isUuid = Str::isUuid('a0a2a2d2-0b87-4a18-83f2-2529882be2de', version: 4);

// true

$isUuid = Str::isUuid('a0a2a2d2-0b87-4a18-83f2-2529882be2de', version: 1);

// false
```

<a name="method-kebab-case"></a>
#### `Str::kebab()`

Expand Down Expand Up @@ -2640,6 +2654,20 @@ $result = Str::of('Taylor')->isUuid();
// false
```

Вы также можете проверить, соответствует ли заданный UUID спецификации UUID по версии (1, 3, 4, 5, 6, 7 или 8):

```php
use Illuminate\Support\Str;

$isUuid = Str::of('a0a2a2d2-0b87-4a18-83f2-2529882be2de')->isUuid(version: 4);

// true

$isUuid = Str::of('a0a2a2d2-0b87-4a18-83f2-2529882be2de')->isUuid(version: 1);

// false
```

<a name="method-fluent-str-kebab"></a>
#### `kebab`

Expand Down