Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/DomainSetWallet.php
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | public function handle() | ||||
Queue::fake(); // ignore LDAP for now (note: adding entitlements updates the domain) | Queue::fake(); // ignore LDAP for now (note: adding entitlements updates the domain) | ||||
Entitlement::create( | Entitlement::create( | ||||
[ | [ | ||||
'wallet_id' => $wallet->id, | 'wallet_id' => $wallet->id, | ||||
'sku_id' => $sku->id, | 'sku_id' => $sku->id, | ||||
'cost' => 0, | 'cost' => 0, | ||||
'fee' => 0, | |||||
'entitleable_id' => $domain->id, | 'entitleable_id' => $domain->id, | ||||
'entitleable_type' => Domain::class, | 'entitleable_type' => Domain::class, | ||||
] | ] | ||||
); | ); | ||||
} | } | ||||
} | } |