Changeset View
Changeset View
Standalone View
Standalone View
src/database/seeds/local/SkuSeeder.php
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | public function run() | ||||
] | ] | ||||
); | ); | ||||
// Check existence because migration might have added this already | // Check existence because migration might have added this already | ||||
if (!\App\Sku::where('title', 'beta')->first()) { | if (!\App\Sku::where('title', 'beta')->first()) { | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'beta', | 'title' => 'beta', | ||||
'name' => 'Beta program', | 'name' => 'Private Beta (invitation only)', | ||||
'description' => 'Access to beta program subscriptions', | 'description' => 'Access to the private beta program subscriptions', | ||||
'cost' => 0, | 'cost' => 0, | ||||
'units_free' => 0, | 'units_free' => 0, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Beta', | 'handler_class' => 'App\Handlers\Beta', | ||||
'active' => false, | 'active' => false, | ||||
] | ] | ||||
); | ); | ||||
} | } | ||||
// Check existence because migration might have added this already | // Check existence because migration might have added this already | ||||
if (!\App\Sku::where('title', 'meet')->first()) { | if (!\App\Sku::where('title', 'meet')->first()) { | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'meet', | 'title' => 'meet', | ||||
'name' => 'Video chat', | 'name' => 'Voice & Video Conferencing (public beta)', | ||||
'description' => 'Video conferencing tool', | 'description' => 'Video conferencing tool', | ||||
'cost' => 0, | 'cost' => 0, | ||||
'units_free' => 0, | 'units_free' => 0, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Beta\Meet', | 'handler_class' => 'App\Handlers\Meet', | ||||
'active' => true, | 'active' => true, | ||||
] | ] | ||||
); | ); | ||||
} | } | ||||
// Check existence because migration might have added this already | // Check existence because migration might have added this already | ||||
if (!\App\Sku::where('title', 'group')->first()) { | if (!\App\Sku::where('title', 'group')->first()) { | ||||
Sku::create( | Sku::create( | ||||
Show All 14 Lines |