Skip to content

Commit 889b76f

Browse files
committed
Setup Category model fields
1 parent bb6ba4e commit 889b76f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

database/migrations/2021_01_13_201345_create_categories_table.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public function up()
1515
{
1616
Schema::create('categories', function (Blueprint $table) {
1717
$table->id();
18+
$table->string('name');
19+
$table->string('slug')->unique();
1820
$table->timestamps();
1921
});
2022
}

0 commit comments

Comments
 (0)