Skip to content

Commit af1f9c3

Browse files
committed
Added copy of Laragear migration
1 parent 513be4d commit af1f9c3

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ phpunit.xml
1111
phpstan.neon
1212
testbench.yaml
1313
vendor
14+
test-results

tests/TestCase.php

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ public function getEnvironmentSetUp($app)
6464

6565
// $twoFactorMigration = include __DIR__.'/../vendor/laragear/two-factor/database/migrations/0000_00_00_000000_create_two_factor_authentications_table.php';
6666
// $twoFactorMigration->up();
67+
$twoFactorMigration = include __DIR__.'/database/migrations/create_two_factor_authentications_table.php';
68+
$twoFactorMigration->up();
69+
6770

6871
}
6972

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
use Illuminate\Database\Schema\Blueprint;
4+
use Laragear\TwoFactor\Models\TwoFactorAuthentication;
5+
6+
return TwoFactorAuthentication::migration(function (Blueprint $table) {
7+
// Here you can add custom columns to the Two Factor table.
8+
//
9+
// $table->string('alias')->nullable();
10+
});

0 commit comments

Comments
 (0)