Changeset View
Changeset View
Standalone View
Standalone View
src/database/seeds/local/UserSeeder.php
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | public function run() | ||||
'country' => 'US' | 'country' => 'US' | ||||
] | ] | ||||
); | ); | ||||
$john->assignPackage($package_kolab, $ned); | $john->assignPackage($package_kolab, $ned); | ||||
$ned->assignSku(\App\Sku::where('title', 'activesync')->first(), 1); | $ned->assignSku(\App\Sku::where('title', 'activesync')->first(), 1); | ||||
// Ned is a controller on Jack's wallet | // Ned is a controller on John's wallet | ||||
$john->wallets()->first()->addController($ned); | $john->wallets()->first()->addController($ned); | ||||
// Ned is also our 2FA test user | // Ned is also our 2FA test user | ||||
$sku2fa = Sku::firstOrCreate(['title' => '2fa']); | $sku2fa = Sku::firstOrCreate(['title' => '2fa']); | ||||
$ned->assignSku($sku2fa); | $ned->assignSku($sku2fa); | ||||
SecondFactor::seed('ned@kolab.org'); | SecondFactor::seed('ned@kolab.org'); | ||||
$joe = User::create( | $joe = User::create( | ||||
Show All 23 Lines |