Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/DomainListUsers.php
Show All 31 Lines | class DomainListUsers extends Command | ||||
/** | /** | ||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$domain = \App\Domain::where('namespace', $this->argument('domain'))->first(); | $domain = \App\Domain::withEnvTenant()->where('namespace', $this->argument('domain'))->first(); | ||||
if (!$domain) { | if (!$domain) { | ||||
return 1; | return 1; | ||||
} | } | ||||
if ($domain->isPublic()) { | if ($domain->isPublic()) { | ||||
$this->error("This domain is a public registration domain."); | $this->error("This domain is a public registration domain."); | ||||
return 1; | return 1; | ||||
Show All 35 Lines |