mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-26 17:09:11 +01:00
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
|
|
use App\TwoFAccount;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
|
|
class TwoFAccountsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$faker = \Faker\Factory::create();
|
|
|
|
TwoFAccount::create([
|
|
'name' => $faker->unique()->domainName,
|
|
'secret' => 'otpauth://totp/test@test.com?secret=A4GRFHVVRBGY7UIW&issuer=test',
|
|
]);
|
|
|
|
$deletedResource = TwoFAccount::create([
|
|
'name' => $faker->unique()->domainName,
|
|
'secret' => $faker->password,
|
|
]);
|
|
$deletedResource->delete();
|
|
|
|
TwoFAccount::create([
|
|
'name' => $faker->unique()->domainName,
|
|
'secret' => $faker->password,
|
|
]);
|
|
TwoFAccount::create([
|
|
'name' => $faker->unique()->domainName,
|
|
'secret' => $faker->password,
|
|
]);
|
|
TwoFAccount::create([
|
|
'name' => $faker->unique()->domainName,
|
|
'secret' => $faker->password,
|
|
]);
|
|
}
|
|
}
|