id(); $table->unsignedBigInteger('user_id'); $table->string('photo')->nullable(); $table->string('name')->nullable(); $table->string('surname')->nullable(); $table->string('patronymic')->nullable(); $table->string('specialization')->nullable(); $table->string('information_about_me')->nullable(); $table->timestamps(); $table->foreign('user_id') ->references('id')->on('users') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('teachers'); } }