2FAuth/database/seeders/TwoFAccountsTableSeeder.php

70 lines
2.1 KiB
PHP
Raw Normal View History

2019-06-24 00:22:37 +02:00
<?php
2021-12-02 13:15:53 +01:00
namespace Database\Seeders;
use App\Models\TwoFAccount;
2019-06-24 00:22:37 +02:00
use Illuminate\Database\Seeder;
2021-12-02 13:15:53 +01:00
2019-06-24 00:22:37 +02:00
class TwoFAccountsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = \Faker\Factory::create();
TwoFAccount::create([
2021-11-12 09:53:40 +01:00
'otp_type' => 'totp',
'account' => $faker->safeEmail,
'service' => $faker->unique()->domainName,
2021-11-12 09:53:40 +01:00
'secret' => 'A4GRFHZVRBGY7UIW',
'algorithm' => 'sha1',
'digits' => 6,
'period' => 30,
'icon' => 'https://fakeimg.pl/64x64/',
2019-06-24 00:22:37 +02:00
]);
TwoFAccount::create([
2021-11-12 09:53:40 +01:00
'otp_type' => 'totp',
'account' => $faker->safeEmail,
'service' => $faker->unique()->domainName,
2021-11-12 09:53:40 +01:00
'secret' => 'A4GRFHZVRBGY7UIW',
'algorithm' => 'sha1',
'digits' => 6,
'period' => 30,
'icon' => 'https://fakeimg.pl/64x64/',
2019-06-24 00:22:37 +02:00
]);
TwoFAccount::create([
2021-11-12 09:53:40 +01:00
'otp_type' => 'totp',
'account' => $faker->safeEmail,
'service' => $faker->unique()->domainName,
2021-11-12 09:53:40 +01:00
'secret' => 'A4GRFHZVRBGY7UIW',
'algorithm' => 'sha1',
'digits' => 6,
'period' => 30,
'icon' => 'https://fakeimg.pl/64x64/',
2019-06-24 00:22:37 +02:00
]);
TwoFAccount::create([
2021-11-12 09:53:40 +01:00
'otp_type' => 'totp',
'account' => $faker->safeEmail,
'service' => $faker->unique()->domainName,
2021-11-12 09:53:40 +01:00
'secret' => 'A4GRFHZVRBGY7UIW',
'algorithm' => 'sha1',
'digits' => 6,
'period' => 30,
'icon' => 'https://fakeimg.pl/64x64/',
2019-06-24 00:22:37 +02:00
]);
TwoFAccount::create([
2021-11-12 09:53:40 +01:00
'otp_type' => 'totp',
'account' => $faker->safeEmail,
'service' => $faker->unique()->domainName,
2021-11-12 09:53:40 +01:00
'secret' => 'A4GRFHZVRBGY7UIW',
'algorithm' => 'sha1',
'digits' => 6,
'period' => 30,
'icon' => 'https://fakeimg.pl/64x64/',
2019-06-24 00:22:37 +02:00
]);
}
}