Skip to content

Commit 28dd304

Browse files
committed
add fields to address
1 parent dcb3437 commit 28dd304

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

database/migrations/2020_01_01_000001_create_addresses_table.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ public function up()
1313
Schema::create(config('laravel-address.tables.addresses'), function (Blueprint $table) {
1414
// Columns
1515
$table->increments('id');
16-
$table->string('given_name');
17-
$table->string('family_name')->nullable;
16+
$table->string('first_name');
17+
$table->string('last_name')->nullable();
18+
$table->string('phone')->nullable();
19+
$table->string('email')->nullable();
1820
$table->morphs('addressable');
1921
$table->string('label')->nullable();
20-
$table->string('organization')->nullable();
22+
$table->string('company')->nullable();
2123
$table->foreignId('country_id')->on('countries');
2224
$table->foreignId('state_id')->on('states');
2325
$table->foreignId('city_id');
26+
$table->string('line1')->nullable();
27+
$table->string('line2')->nullable();
2428
$table->string('street')->nullable();
2529
$table->string('postal_code')->nullable();
2630
$table->decimal('latitude', 10, 7)->nullable();

0 commit comments

Comments
 (0)