Skip to content

Commit 7fc09f0

Browse files
committed
Merge pull request davzie#3 from djekl/master
fix the seed issue of a blank last login
2 parents a2110fc + 44f9d82 commit 7fc09f0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Davzie/LaravelBootstrap/Seeds/UserTable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ public function run()
1616
'first_name' => Config::get('laravel-bootstrap::setup.first-name'),
1717
'last_name' => Config::get('laravel-bootstrap::setup.last-name'),
1818
'password' => Hash::make( Config::get('laravel-bootstrap::setup.password') ),
19+
'created_at' => date('Y-m-d H:i:s'),
1920
]
2021
];
2122
DB::table('users')->insert($types);
2223
$this->command->info('User Table Seeded');
2324

2425
}
2526

26-
}
27+
}

src/migrations/2013_08_20_205312_create_users_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function up()
2323
$table->unique('email');
2424
$table->string('first_name',255);
2525
$table->string('last_name',255);
26-
$table->dateTime('last_login');
26+
$table->dateTime('last_login')->nullable();
2727
$table->timestamps();
2828

2929
});
@@ -40,4 +40,4 @@ public function down()
4040
Schema::drop('users');
4141
}
4242

43-
}
43+
}

0 commit comments

Comments
 (0)