Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8198039
SkuSeeder.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
SkuSeeder.php
View Options
<?php
use
App\Sku
;
use
Illuminate\Database\Seeder
;
class
SkuSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
Sku
::
create
(
[
'title'
=>
'mailbox'
,
'description'
=>
'Just a mailbox'
,
'cost'
=>
444
,
'units_free'
=>
0
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\M
ailbox'
,
'active'
=>
true
,
]
);
Sku
::
create
(
[
'title'
=>
'domain'
,
'description'
=>
'Somewhere to place a mailbox'
,
'cost'
=>
100
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\D
omain'
,
'active'
=>
true
,
]
);
Sku
::
create
(
[
'title'
=>
'domain-registration'
,
'description'
=>
'Register a domain with us'
,
'cost'
=>
101
,
'period'
=>
'yearly'
,
'handler_class'
=>
'App
\H
andlers
\D
omainRegistration'
,
'active'
=>
false
,
]
);
Sku
::
create
(
[
'title'
=>
'domain-hosting'
,
'description'
=>
'Host a domain that is externally registered'
,
'cost'
=>
100
,
'units_free'
=>
1
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\D
omainHosting'
,
'active'
=>
true
,
]
);
Sku
::
create
(
[
'title'
=>
'domain-relay'
,
'description'
=>
'A domain you host at home, for which we relay email'
,
'cost'
=>
103
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\D
omainRelay'
,
'active'
=>
false
,
]
);
Sku
::
create
(
[
'title'
=>
'storage'
,
'description'
=>
'Some wiggle room'
,
'cost'
=>
25
,
'units_free'
=>
2
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\S
torage'
,
'active'
=>
true
,
]
);
Sku
::
create
(
[
'title'
=>
'groupware'
,
'description'
=>
'groupware functions'
,
'cost'
=>
555
,
'units_free'
=>
0
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\G
roupware'
,
'active'
=>
true
,
]
);
Sku
::
create
(
[
'title'
=>
'resource'
,
'description'
=>
'Reservation taker'
,
'cost'
=>
101
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\R
esource'
,
'active'
=>
false
,
]
);
Sku
::
create
(
[
'title'
=>
'shared_folder'
,
'description'
=>
'A shared folder'
,
'cost'
=>
89
,
'period'
=>
'monthly'
,
'handler_class'
=>
'App
\H
andlers
\S
haredFolder'
,
'active'
=>
false
,
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 8, 6:20 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1051222
Default Alt Text
SkuSeeder.php (3 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment