Get settings working and autologin

This commit is contained in:
Kode
2018-10-15 19:56:45 +01:00
parent aa351e31bf
commit d0293c785b
15 changed files with 204 additions and 126 deletions

View File

@@ -19,7 +19,7 @@ class CreateSettingUserPivotTable extends Migration
$table->integer('user_id')->unsigned()->index();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->primary(['setting_id', 'user_id']);
$table->string('value')->nullable();
$table->string('uservalue')->nullable();
});
}

View File

@@ -16,8 +16,8 @@ class UsersSeeder extends Seeder
if(!$user = User::find(1)) {
$user = new User;
$user->id = 1;
$user->name = 'User';
$user->email = 'test@test.com';
$user->name = 'Admin';
$user->email = 'admin@test.com';
$user->save();
} else {
//$user->save();