3 use Illuminate\Database\Schema\Blueprint;
4 use Illuminate\Database\Migrations\Migration;
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->string('books_display')->default('grid');
21 $table->rememberToken();
22 $table->nullableTimestamps();
25 // Create the initial admin user
26 DB::table('users')->insert([
29 'password' => bcrypt('password'),
30 'books_display' => 'grid',
31 'created_at' => \Carbon\Carbon::now()->toDateTimeString(),
32 'updated_at' => \Carbon\Carbon::now()->toDateTimeString()
37 * Reverse the migrations.
41 public function down()
43 Schema::drop('users');