Changeset View
Changeset View
Standalone View
Standalone View
src/database/seeds/local/SkuSeeder.php
Show First 20 Lines • Show All 193 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\Group', | 'handler_class' => 'App\Handlers\Group', | ||||
'active' => true, | 'active' => true, | ||||
] | ] | ||||
); | ); | ||||
} | } | ||||
// Check existence because migration might have added this already | |||||
if (!\App\Sku::where('title', 'distlist')->first()) { | |||||
\App\Sku::create([ | |||||
'title' => 'distlist', | |||||
'name' => 'Distribution lists', | |||||
'description' => 'Access to mail distribution lists', | |||||
'cost' => 0, | |||||
'units_free' => 0, | |||||
'period' => 'monthly', | |||||
'handler_class' => 'App\Handlers\Distlist', | |||||
'active' => true, | |||||
]); | |||||
} | |||||
} | } | ||||
} | } |