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