File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 3
3
use Illuminate \Database \Migrations \Migration ;
4
4
use Illuminate \Database \Schema \Blueprint ;
5
5
use Illuminate \Support \Facades \Schema ;
6
- use Laravel \Fortify \Fortify ;
7
6
8
7
return new class extends Migration
9
8
{
@@ -21,11 +20,9 @@ public function up(): void
21
20
->after ('two_factor_secret ' )
22
21
->nullable ();
23
22
24
- if (Fortify::confirmsTwoFactorAuthentication ()) {
25
- $ table ->timestamp ('two_factor_confirmed_at ' )
26
- ->after ('two_factor_recovery_codes ' )
27
- ->nullable ();
28
- }
23
+ $ table ->timestamp ('two_factor_confirmed_at ' )
24
+ ->after ('two_factor_recovery_codes ' )
25
+ ->nullable ();
29
26
});
30
27
}
31
28
@@ -35,12 +32,11 @@ public function up(): void
35
32
public function down (): void
36
33
{
37
34
Schema::table ('users ' , function (Blueprint $ table ) {
38
- $ table ->dropColumn (array_merge ( [
35
+ $ table ->dropColumn ([
39
36
'two_factor_secret ' ,
40
37
'two_factor_recovery_codes ' ,
41
- ], Fortify::confirmsTwoFactorAuthentication () ? [
42
38
'two_factor_confirmed_at ' ,
43
- ] : []) );
39
+ ]);
44
40
});
45
41
}
46
42
};
You can’t perform that action at this time.
0 commit comments