Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/UserEntitlements.php
Show All 33 Lines | class UserEntitlements extends Command | ||||
/** | /** | ||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$user = User::where('email', $this->argument('userid'))->first(); | $user = User::withEnvTenant()->where('email', $this->argument('userid'))->first(); | ||||
if (!$user) { | if (!$user) { | ||||
return 1; | return 1; | ||||
} | } | ||||
$this->info("Found user: {$user->id}"); | $this->info("Found user: {$user->id}"); | ||||
$skus_counted = []; | $skus_counted = []; | ||||
Show All 15 Lines |