increments('id'); $table->integer('recipe_id')->unsigned(); $table->string('step'); $table->foreign('recipe_id') ->references('id') ->on('recipes') ->onUpdate('cascade') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('recipe_steps'); } }