Change name to username

This commit is contained in:
Chris
2018-10-16 14:14:14 +01:00
parent 15755a3fd1
commit 6093119dde
11 changed files with 22 additions and 17 deletions

View File

@@ -15,8 +15,8 @@ class CreateUsersTable extends Migration
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('username')->unique();
$table->string('email');
$table->string('avatar')->nullable();
$table->string('password')->nullable();
$table->string('autologin')->nullable()->index();

View File

@@ -17,6 +17,7 @@ class UsersSeeder extends Seeder
$user = new User;
$user->id = 1;
$user->name = 'Admin';
$user->username = 'admin';
$user->email = 'admin@test.com';
$user->save();
} else {