Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/DomainStatus.php
- This file was copied to src/app/Console/Commands/DomainSetStatus.php.
Show All 38 Lines | class DomainStatus extends Command | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$domain = Domain::where('namespace', $this->argument('domain'))->first(); | $domain = Domain::where('namespace', $this->argument('domain'))->first(); | ||||
if (!$domain) { | if (!$domain) { | ||||
return 1; | return 1; | ||||
} | } | ||||
$this->info("Found domain: {$domain->id}"); | |||||
$this->info($domain->status); | $this->info($domain->status); | ||||
} | } | ||||
} | } |