Skip to content

Commit a49bcb9

Browse files
Add Slug
1 parent bae3f6a commit a49bcb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

database/migrations/2023_10_26_164941_create_contents_table.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function up(): void
2121
$table->integer('category_id');
2222
$table->string('content_status');
2323
$table->string('featured_image_url')->nullable();
24+
$table->string('slug')->unique()
2425
$table->timestamps();
2526

2627
$table->foreign('author_id')->references('author_id')->on('authors');

0 commit comments

Comments
 (0)