Skip to content

Commit

Permalink
Unsupported operand types on rollback migration (#362)
Browse files Browse the repository at this point in the history
When trying to rollback the migrations i got this error
TypeError 
Unsupported operand types: array + bool

This commit solves the issue.
  • Loading branch information
Jackpump authored Feb 23, 2022
1 parent ae7c7d8 commit eb1d07c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
] : []);
] : []));
});
}
};

0 comments on commit eb1d07c

Please sign in to comment.