id(); $table->unsignedBigInteger('user_id'); $table->string('photo')->nullable(); $table->string('first_name')->nullable(); $table->string('second_name')->nullable(); $table->string('middle_name')->nullable(); $table->date('date_of_birth')->nullable(); $table->string('phone_number')->nullable(); $table->string('address')->nullable(); $table->string('passport')->nullable(); $table->string('place_of_work')->nullable(); $table->string('position_at_work')->nullable(); $table->timestamps(); $table->foreign('user_id') ->references('id')->on('users') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('parents'); } }