Changeset View
Changeset View
Standalone View
Standalone View
src/database/seeds/production/SkuSeeder.php
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | public function run() | ||||
'cost' => 0, | 'cost' => 0, | ||||
'units_free' => 0, | 'units_free' => 0, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Beta\Meet', | 'handler_class' => 'App\Handlers\Beta\Meet', | ||||
'active' => true, | 'active' => true, | ||||
] | ] | ||||
); | ); | ||||
} | } | ||||
// Check existence because migration might have added this already | |||||
if (!\App\Sku::where('title', 'group')->first()) { | |||||
Sku::create( | |||||
[ | |||||
'title' => 'group', | |||||
'name' => 'Group', | |||||
'description' => 'Distribution list', | |||||
'cost' => 0, | |||||
'units_free' => 0, | |||||
'period' => 'monthly', | |||||
'handler_class' => 'App\Handlers\Group', | |||||
'active' => true, | |||||
] | |||||
); | |||||
} | |||||
} | } | ||||
} | } |