Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/DomainStatus.php
Show All 32 Lines | class DomainStatus extends Command | ||||
/** | /** | ||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$domain = Domain::where('namespace', $this->argument('domain'))->first(); | |||||
$domain = Domain::withEnvTenant()->where('namespace', $this->argument('domain'))->first(); | |||||
if (!$domain) { | if (!$domain) { | ||||
return 1; | return 1; | ||||
} | } | ||||
$statuses = [ | $statuses = [ | ||||
'active' => Domain::STATUS_ACTIVE, | 'active' => Domain::STATUS_ACTIVE, | ||||
'suspended' => Domain::STATUS_SUSPENDED, | 'suspended' => Domain::STATUS_SUSPENDED, | ||||
Show All 15 Lines |