seantrant
7/15/2016 - 4:40 PM

Make Migration

//vagrant ssh

php artisan make:migration add_votes_to_users_table --table=users    

// to create a new table

    Schema::create('user_type', function (Blueprint $table) {
        $table->increments('id');
        $table->integer('user_id');
        $table->integer('user_type');
    });
}

// to add to an existing table

        Schema::table('users', function (Blueprint $table) {
            $table->string('first_name');
            $table->string('second_name');
        });