Skip to content

Commit 1261edc

Browse files
WebVPFmjauvin
andauthored
Update database/traits.md
Co-authored-by: Marc Jauvin <marc.jauvin@gmail.com>
1 parent cc9c43a commit 1261edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ $user->setSortableOrder([1, 2, 3], [3, 2, 1]);
207207
208208
## Simple Tree
209209

210-
A simple tree model will use the `parent_id` column maintain a parent and child relationship between models. To add the `parent_id` column to your table, you may use the `integer` method inside a migration.
210+
A simple tree model will use the `parent_id` column maintain a parent and child relationship between models. To add the `parent_id` column to your table, you may use the `unsignedInteger` method inside a migration.
211211

212212
```php
213213
Schema::table('categories', function ($table) {

0 commit comments

Comments
 (0)