Changeset View
Changeset View
Standalone View
Standalone View
src/database/seeds/SkuSeeder.php
Show All 9 Lines | class SkuSeeder extends Seeder | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function run() | public function run() | ||||
{ | { | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'mailbox', | 'title' => 'mailbox', | ||||
'name' => 'User Mailbox', | |||||
'description' => 'Just a mailbox', | 'description' => 'Just a mailbox', | ||||
'cost' => 444, | 'cost' => 444, | ||||
'units_free' => 0, | 'units_free' => 0, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Mailbox', | 'handler_class' => 'App\Handlers\Mailbox', | ||||
'active' => true, | 'active' => true, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'domain', | 'title' => 'domain', | ||||
'name' => 'Hosted Domain', | |||||
'description' => 'Somewhere to place a mailbox', | 'description' => 'Somewhere to place a mailbox', | ||||
'cost' => 100, | 'cost' => 100, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Domain', | 'handler_class' => 'App\Handlers\Domain', | ||||
'active' => true, | 'active' => false, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'domain-registration', | 'title' => 'domain-registration', | ||||
'name' => 'Domain Registration', | |||||
'description' => 'Register a domain with us', | 'description' => 'Register a domain with us', | ||||
'cost' => 101, | 'cost' => 101, | ||||
'period' => 'yearly', | 'period' => 'yearly', | ||||
'handler_class' => 'App\Handlers\DomainRegistration', | 'handler_class' => 'App\Handlers\DomainRegistration', | ||||
'active' => false, | 'active' => false, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'domain-hosting', | 'title' => 'domain-hosting', | ||||
'name' => 'External Domain', | |||||
'description' => 'Host a domain that is externally registered', | 'description' => 'Host a domain that is externally registered', | ||||
'cost' => 100, | 'cost' => 100, | ||||
'units_free' => 1, | 'units_free' => 1, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\DomainHosting', | 'handler_class' => 'App\Handlers\DomainHosting', | ||||
'active' => true, | 'active' => true, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'domain-relay', | 'title' => 'domain-relay', | ||||
'name' => 'Domain Relay', | |||||
'description' => 'A domain you host at home, for which we relay email', | 'description' => 'A domain you host at home, for which we relay email', | ||||
'cost' => 103, | 'cost' => 103, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\DomainRelay', | 'handler_class' => 'App\Handlers\DomainRelay', | ||||
'active' => false, | 'active' => false, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'storage', | 'title' => 'storage', | ||||
'name' => 'Storage Quota', | |||||
'description' => 'Some wiggle room', | 'description' => 'Some wiggle room', | ||||
'cost' => 25, | 'cost' => 25, | ||||
'units_free' => 2, | 'units_free' => 2, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Storage', | 'handler_class' => 'App\Handlers\Storage', | ||||
'active' => true, | 'active' => true, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'groupware', | 'title' => 'groupware', | ||||
'name' => 'Groupware functions', | |||||
'description' => 'groupware functions', | 'description' => 'groupware functions', | ||||
'cost' => 555, | 'cost' => 555, | ||||
'units_free' => 0, | 'units_free' => 0, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Groupware', | 'handler_class' => 'App\Handlers\Groupware', | ||||
'active' => true, | 'active' => true, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'resource', | 'title' => 'resource', | ||||
'name' => 'Resource', | |||||
'description' => 'Reservation taker', | 'description' => 'Reservation taker', | ||||
'cost' => 101, | 'cost' => 101, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\Resource', | 'handler_class' => 'App\Handlers\Resource', | ||||
'active' => false, | 'active' => false, | ||||
] | ] | ||||
); | ); | ||||
Sku::create( | Sku::create( | ||||
[ | [ | ||||
'title' => 'shared_folder', | 'title' => 'shared_folder', | ||||
'name' => 'Shared Folder', | |||||
'description' => 'A shared folder', | 'description' => 'A shared folder', | ||||
'cost' => 89, | 'cost' => 89, | ||||
'period' => 'monthly', | 'period' => 'monthly', | ||||
'handler_class' => 'App\Handlers\SharedFolder', | 'handler_class' => 'App\Handlers\SharedFolder', | ||||
'active' => false, | 'active' => false, | ||||
] | ] | ||||
); | ); | ||||
} | } | ||||
} | } |