Skip to content

Commit c254ecc

Browse files
authored
Require unique username #20
1 parent 9d3d261 commit c254ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2014_10_12_000001_modify_users_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function up()
2222
if (config("database.default") === "testing") {
2323
$column->default('');
2424
}
25-
$table->string('username')->after('last_name');
25+
$table->string('username')->unique()->after('last_name');
2626
$table->text('bio')->nullable()->after('password'); // Will be written in Markdown. The user profile image will come from Gravatar account for the email address.
2727
$table->text('title')->nullable()->after('bio');
2828
$table->softDeletes()->after('title');

0 commit comments

Comments
 (0)