id(); $table->unsignedBigInteger('template_id')->nullable(); $table->string('name'); $table->string('path'); $table->integer('size'); $table->timestamps(); $table->foreign('template_id')->references('id')->on('email_templates')->onDelete('set null'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('email_attachments'); } };