diff --git a/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php b/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php index 749b5213..6acbf7b6 100644 --- a/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php +++ b/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php @@ -39,12 +39,12 @@ public function up() public function down() { Schema::table('users', function (Blueprint $table) { - $table->dropColumn([ + $table->dropColumn(array_merge([ 'two_factor_secret', 'two_factor_recovery_codes', - ] + Fortify::confirmsTwoFactorAuthentication() ? [ + ], Fortify::confirmsTwoFactorAuthentication() ? [ 'two_factor_confirmed_at', - ] : []); + ] : [])); }); } };