mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-28 19:23:11 +01:00
new 2FAccounts seeder
This commit is contained in:
parent
8b5f5223c0
commit
dc64aa55ec
47
database/seeds/TwoFAccountsTableSeeder.php
Normal file
47
database/seeds/TwoFAccountsTableSeeder.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?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,
|
||||||
|
'email' => $faker->email,
|
||||||
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFTVVRBGY7UIW&issuer=test',
|
||||||
|
'icon' => 'https://fakeimg.pl/64x64/'
|
||||||
|
]);
|
||||||
|
TwoFAccount::create([
|
||||||
|
'name' => $faker->unique()->domainName,
|
||||||
|
'email' => $faker->email,
|
||||||
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHYVRBGY7UIW&issuer=test',
|
||||||
|
'icon' => 'https://fakeimg.pl/64x64/'
|
||||||
|
]);
|
||||||
|
TwoFAccount::create([
|
||||||
|
'name' => $faker->unique()->domainName,
|
||||||
|
'email' => $faker->email,
|
||||||
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHZVRBGY7UIW&issuer=test',
|
||||||
|
'icon' => 'https://fakeimg.pl/64x64/'
|
||||||
|
]);
|
||||||
|
TwoFAccount::create([
|
||||||
|
'name' => $faker->unique()->domainName,
|
||||||
|
'email' => $faker->email,
|
||||||
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHVIRBGY7UIW&issuer=test',
|
||||||
|
'icon' => 'https://fakeimg.pl/64x64/'
|
||||||
|
]);
|
||||||
|
TwoFAccount::create([
|
||||||
|
'name' => $faker->unique()->domainName,
|
||||||
|
'email' => $faker->email,
|
||||||
|
'uri' => 'otpauth://totp/test@test.com?secret=A4GRFHVVOBGY7UIW&issuer=test',
|
||||||
|
'icon' => 'https://fakeimg.pl/64x64/'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user