define(TwoFAccount::class, function (Faker $faker) { $service = $faker->unique()->domainName; $account = $faker->safeEmail; return [ 'service' => $service, 'account' => $account, 'uri' => 'otpauth://totp/' . $service . ':' . $account . '?secret=' . Base32::encodeUpper($faker->regexify('[A-Z0-9]{8}')) . '&issuer=' . $service, 'icon' => '', ]; });