Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/Job/DomainUpdate.php
Show All 22 Lines | class DomainUpdate 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; | ||||
} | } | ||||
$job = new \App\Jobs\Domain\UpdateJob($domain->id); | $job = new \App\Jobs\Domain\UpdateJob($domain->id); | ||||
$job->handle(); | $job->handle(); | ||||
} | } | ||||
} | } |