Changeset View
Changeset View
Standalone View
Standalone View
src/database/seeds/PlanSeeder.php
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | EOD; | ||||
'name' => 'Group Account', | 'name' => 'Group Account', | ||||
'description' => $description, | 'description' => $description, | ||||
'discount_qty' => 0, | 'discount_qty' => 0, | ||||
'discount_rate' => 0 | 'discount_rate' => 0 | ||||
] | ] | ||||
); | ); | ||||
$packages = [ | $packages = [ | ||||
Package::firstOrCreate(['title' => 'kolab']), | |||||
Package::firstOrCreate(['title' => 'domain-hosting']), | Package::firstOrCreate(['title' => 'domain-hosting']), | ||||
Package::firstOrCreate(['title' => 'kolab']), | |||||
]; | ]; | ||||
$plan->packages()->saveMany($packages); | $plan->packages()->saveMany($packages); | ||||
} | } | ||||
} | } |