Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/MollieInfo.php
Show All 23 Lines | class MollieInfo extends Command | ||||
/** | /** | ||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
if ($this->argument('user')) { | if ($this->argument('user')) { | ||||
$user = User::where('email', $this->argument('user'))->first(); | $user = User::withEnvTenant()->where('email', $this->argument('user'))->first(); | ||||
if (!$user) { | if (!$user) { | ||||
return 1; | return 1; | ||||
} | } | ||||
$this->info("Found user: {$user->id}"); | $this->info("Found user: {$user->id}"); | ||||
$wallet = $user->wallets->first(); | $wallet = $user->wallets->first(); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |