Skip to content

Commit cc9c43a

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

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
@@ -211,7 +211,7 @@ A simple tree model will use the `parent_id` column maintain a parent and child
211211

212212
```php
213213
Schema::table('categories', function ($table) {
214-
$table->integer('parent_id')->nullable()->unsigned();
214+
$table->unsignedInteger('parent_id')->nullable();
215215
});
216216
```
217217

0 commit comments

Comments
 (0)