3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
6 class CreateUsersTable extends Migration
15 Schema::create('users', function (Blueprint $table) {
16 $table->increments('id');
17 $table->string('name');
18 $table->string('email')->unique();
19 $table->string('password', 60);
20 $table->rememberToken();
21 $table->nullableTimestamps();
24 // Create the initial admin user
25 DB::table('users')->insert([
28 'password' => bcrypt('password'),
29 'created_at' => \Carbon\Carbon::now()->toDateTimeString(),
30 'updated_at' => \Carbon\Carbon::now()->toDateTimeString(),
35 * Reverse the migrations.
39 public function down()
41 Schema::drop('users');