mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-27 02:36:06 +01:00
70 lines
2.1 KiB
PHP
70 lines
2.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\TwoFAccount;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class TwoFAccountsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$faker = \Faker\Factory::create();
|
|
|
|
TwoFAccount::create([
|
|
'otp_type' => 'totp',
|
|
'account' => $faker->safeEmail,
|
|
'service' => $faker->unique()->domainName,
|
|
'secret' => 'A4GRFHZVRBGY7UIW',
|
|
'algorithm' => 'sha1',
|
|
'digits' => 6,
|
|
'period' => 30,
|
|
'icon' => 'https://fakeimg.pl/64x64/',
|
|
]);
|
|
TwoFAccount::create([
|
|
'otp_type' => 'totp',
|
|
'account' => $faker->safeEmail,
|
|
'service' => $faker->unique()->domainName,
|
|
'secret' => 'A4GRFHZVRBGY7UIW',
|
|
'algorithm' => 'sha1',
|
|
'digits' => 6,
|
|
'period' => 30,
|
|
'icon' => 'https://fakeimg.pl/64x64/',
|
|
]);
|
|
TwoFAccount::create([
|
|
'otp_type' => 'totp',
|
|
'account' => $faker->safeEmail,
|
|
'service' => $faker->unique()->domainName,
|
|
'secret' => 'A4GRFHZVRBGY7UIW',
|
|
'algorithm' => 'sha1',
|
|
'digits' => 6,
|
|
'period' => 30,
|
|
'icon' => 'https://fakeimg.pl/64x64/',
|
|
]);
|
|
TwoFAccount::create([
|
|
'otp_type' => 'totp',
|
|
'account' => $faker->safeEmail,
|
|
'service' => $faker->unique()->domainName,
|
|
'secret' => 'A4GRFHZVRBGY7UIW',
|
|
'algorithm' => 'sha1',
|
|
'digits' => 6,
|
|
'period' => 30,
|
|
'icon' => 'https://fakeimg.pl/64x64/',
|
|
]);
|
|
TwoFAccount::create([
|
|
'otp_type' => 'totp',
|
|
'account' => $faker->safeEmail,
|
|
'service' => $faker->unique()->domainName,
|
|
'secret' => 'A4GRFHZVRBGY7UIW',
|
|
'algorithm' => 'sha1',
|
|
'digits' => 6,
|
|
'period' => 30,
|
|
'icon' => 'https://fakeimg.pl/64x64/',
|
|
]);
|
|
}
|
|
} |