increments('id'); $table->date('date_debut'); $table->date('date_fin'); $table->integer('id_customer')->unsigned(); $table->foreign('id_customer')->references('id')->on('customers')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('abonnements'); } }