increments('id'); $table->integer('ecom_order_id'); $table->enum('type', ["billing", "shipping"]); $table->string('first_name')->nullable(); $table->string('last_name')->nullable(); $table->string('company')->nullable(); $table->string('address_1')->nullable(); $table->string('address_2')->nullable(); $table->string('city')->nullable(); $table->string('state')->nullable(); $table->string('postcode')->nullable(); $table->string('country')->nullable(); $table->string('email')->nullable(); $table->string('phone')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('ecommerce_order_addresses'); } }