We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28dd304 commit 7bb4f08Copy full SHA for 7bb4f08
database/migrations/2020_01_01_000001_create_addresses_table.php
@@ -20,9 +20,11 @@ public function up()
20
$table->morphs('addressable');
21
$table->string('label')->nullable();
22
$table->string('company')->nullable();
23
- $table->foreignId('country_id')->on('countries');
24
- $table->foreignId('state_id')->on('states');
25
- $table->foreignId('city_id');
+ $table->foreignId('country_id')->on('countries')->nullable();
+ $table->foreignId('state_id')->on('states')->nullable();
+ $table->string('state')->nullable();
26
+ $table->foreignId('city_id')->on('cities')->nullable();
27
+ $table->string('city')->nullable();
28
$table->string('line1')->nullable();
29
$table->string('line2')->nullable();
30
$table->string('street')->nullable();
0 commit comments