Changeset View
Changeset View
Standalone View
Standalone View
src/database/seeds/local/UserSeeder.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function run() | ||||
'currency' => 'USD', | 'currency' => 'USD', | ||||
'country' => 'US', | 'country' => 'US', | ||||
'billing_address' => "601 13th Street NW\nSuite 900 South\nWashington, DC 20005", | 'billing_address' => "601 13th Street NW\nSuite 900 South\nWashington, DC 20005", | ||||
'external_email' => 'john.doe.external@gmail.com', | 'external_email' => 'john.doe.external@gmail.com', | ||||
'organization' => 'Kolab Developers', | 'organization' => 'Kolab Developers', | ||||
'phone' => '+1 509-248-1111', | 'phone' => '+1 509-248-1111', | ||||
] | ] | ||||
); | ); | ||||
machniak: ned@kolab.org below has the 2fa SKU assigned, so maybe it would be better to use ned@. | |||||
$john->setAliases(['john.doe@kolab.org']); | $john->setAliases(['john.doe@kolab.org']); | ||||
$wallet = $john->wallets->first(); | $wallet = $john->wallets->first(); | ||||
$packageDomain = \App\Package::withEnvTenantContext()->where('title', 'domain-hosting')->first(); | $packageDomain = \App\Package::withEnvTenantContext()->where('title', 'domain-hosting')->first(); | ||||
$packageKolab = \App\Package::withEnvTenantContext()->where('title', 'kolab')->first(); | $packageKolab = \App\Package::withEnvTenantContext()->where('title', 'kolab')->first(); | ||||
$packageLite = \App\Package::withEnvTenantContext()->where('title', 'lite')->first(); | $packageLite = \App\Package::withEnvTenantContext()->where('title', 'lite')->first(); | ||||
Show All 33 Lines | public function run() | ||||
] | ] | ||||
); | ); | ||||
$ned->setSettings( | $ned->setSettings( | ||||
[ | [ | ||||
'first_name' => 'Edward', | 'first_name' => 'Edward', | ||||
'last_name' => 'Flanders', | 'last_name' => 'Flanders', | ||||
'currency' => 'USD', | 'currency' => 'USD', | ||||
'country' => 'US' | 'country' => 'US', | ||||
// 'limit_geo' => json_encode(["CH"]), | |||||
'guam_enabled' => false, | |||||
'2fa_enabled' => true | |||||
] | ] | ||||
); | ); | ||||
$john->assignPackage($packageKolab, $ned); | $john->assignPackage($packageKolab, $ned); | ||||
$ned->assignSku(\App\Sku::withEnvTenantContext()->where('title', 'activesync')->first(), 1); | $ned->assignSku(\App\Sku::withEnvTenantContext()->where('title', 'activesync')->first(), 1); | ||||
// Ned is a controller on Jack's wallet | // Ned is a controller on Jack's wallet | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |
ned@kolab.org below has the 2fa SKU assigned, so maybe it would be better to use ned@.