dropForeign(['user_id']); $table->dropColumn('user_id'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('todos', function (Blueprint $table) { $table->foreignId('user_id')->constrained(); }); } };