I have this migration file
Schema::create(\'table_one\', function(Blueprint $table) { $table->increments(\'id\'); $table->string(\'name\');
Drop the foreign key then add it again and run migrate.
public function up() { Schema::table('table_one', function (Blueprint $table) { $table->dropForeign(['table_two_id']); $table->foreign('table_two_id') ->references('id') ->on('table_two') ->onDelete('cascade'); }); }