2019-06-24 00:22:37 +02:00
|
|
|
<?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([
|
2020-01-06 21:45:14 +01:00
|
|
|
'service' => $faker->unique()->domainName,
|
|
|
|
'account' => $faker->email,
|
2019-06-24 00:22:37 +02:00
|
|
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFTVVRBGY7UIW&issuer=test',
|
|
|
|
'icon' => 'https://fakeimg.pl/64x64/'
|
|
|
|
]);
|
|
|
|
TwoFAccount::create([
|
2020-01-06 21:45:14 +01:00
|
|
|
'service' => $faker->unique()->domainName,
|
|
|
|
'account' => $faker->email,
|
2019-06-24 00:22:37 +02:00
|
|
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHYVRBGY7UIW&issuer=test',
|
|
|
|
'icon' => 'https://fakeimg.pl/64x64/'
|
|
|
|
]);
|
|
|
|
TwoFAccount::create([
|
2020-01-06 21:45:14 +01:00
|
|
|
'service' => $faker->unique()->domainName,
|
|
|
|
'account' => $faker->email,
|
2019-06-24 00:22:37 +02:00
|
|
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHZVRBGY7UIW&issuer=test',
|
|
|
|
'icon' => 'https://fakeimg.pl/64x64/'
|
|
|
|
]);
|
|
|
|
TwoFAccount::create([
|
2020-01-06 21:45:14 +01:00
|
|
|
'service' => $faker->unique()->domainName,
|
|
|
|
'account' => $faker->email,
|
2019-06-24 00:22:37 +02:00
|
|
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHVIRBGY7UIW&issuer=test',
|
|
|
|
'icon' => 'https://fakeimg.pl/64x64/'
|
|
|
|
]);
|
|
|
|
TwoFAccount::create([
|
2020-01-06 21:45:14 +01:00
|
|
|
'service' => $faker->unique()->domainName,
|
|
|
|
'account' => $faker->email,
|
2019-06-24 00:22:37 +02:00
|
|
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHVVOBGY7UIW&issuer=test',
|
|
|
|
'icon' => 'https://fakeimg.pl/64x64/'
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|