Skip to content

Update migrations.md #700

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
10 changes: 9 additions & 1 deletion migrations.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
git: fe846c64bc236ed39fbcd7da705602add79132f4
git: bab1b28a63e72f9e51ad89995ef546058bc01bdc
---

# База данных · Миграции
Expand Down Expand Up @@ -646,6 +646,14 @@ $table->double('amount');
$table->enum('difficulty', ['easy', 'hard']);
```

Конечно, вы можете использовать метод `Enum::cases()` вместо ручного определения массива допустимых значений:

```php
use App\Enums\Difficulty;

$table->enum('difficulty', Difficulty::cases());
```

<a name="column-method-float"></a>
#### `float()`

Expand Down