now login is using username not email

This commit is contained in:
Geriano
2022-07-16 01:13:45 +07:00
parent 12f7a74e10
commit 0a92d68068
9 changed files with 35 additions and 20 deletions

View File

@@ -14,7 +14,9 @@ return new class extends Migration
public function up()
{
Schema::table('users', function (Blueprint $table) {
//
$table->after('name', function (Blueprint $table) {
$table->string('username')->unique();
});
});
}
@@ -26,7 +28,7 @@ return new class extends Migration
public function down()
{
Schema::table('users', function (Blueprint $table) {
//
$table->dropColumn('username');
});
}
};