Page MenuHomePhorge

DomainCreate.php
No OneTemporary

Size
783 B
Referenced Files
None
Subscribers
None

DomainCreate.php

<?php
namespace App\Console\Commands\Job;
use App\Domain;
use Illuminate\Console\Command;
class DomainCreate extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'job:domaincreate {domain}';
/**
* The console command description.
*
* @var string
*/
protected $description = "Execute the DomainCreate job (again).";
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$domain = Domain::where('namespace', $this->argument('domain'))->first();
if (!$domain) {
return 1;
}
$job = new \App\Jobs\Domain\CreateJob($domain->id);
$job->handle();
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Jul 9, 7:41 PM (58 m, 53 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1057045
Default Alt Text
DomainCreate.php (783 B)

Event Timeline