increments('id'); $table->integer('product_id')->unsigned(); $table->integer('company_id'); $table->date('product_date'); $table->text('description')->nullable(); $table->timestamps(); $table->softDeletes(); $table->foreign('product_id')->references('id')->on('products'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('products_dates'); } }