Skip to content

Commit

Permalink
add fields to address
Browse files Browse the repository at this point in the history
  • Loading branch information
aeq-dev committed Sep 8, 2023
1 parent dcb3437 commit 28dd304
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions database/migrations/2020_01_01_000001_create_addresses_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ public function up()
Schema::create(config('laravel-address.tables.addresses'), function (Blueprint $table) {
// Columns
$table->increments('id');
$table->string('given_name');
$table->string('family_name')->nullable;
$table->string('first_name');
$table->string('last_name')->nullable();
$table->string('phone')->nullable();
$table->string('email')->nullable();
$table->morphs('addressable');
$table->string('label')->nullable();
$table->string('organization')->nullable();
$table->string('company')->nullable();
$table->foreignId('country_id')->on('countries');
$table->foreignId('state_id')->on('states');
$table->foreignId('city_id');
$table->string('line1')->nullable();
$table->string('line2')->nullable();
$table->string('street')->nullable();
$table->string('postal_code')->nullable();
$table->decimal('latitude', 10, 7)->nullable();
Expand Down

0 comments on commit 28dd304

Please sign in to comment.