Page MenuHomePhorge

DomainUnsuspend.php
No OneTemporary

Authored By
Unknown
Size
743 B
Referenced Files
None
Subscribers
None

DomainUnsuspend.php

<?php
namespace App\Console\Commands;
use App\Console\Command;
use App\Domain;
class DomainUnsuspend extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'domain:unsuspend {domain}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Remove a domain suspension';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$domain = $this->getDomain($this->argument('domain'));
if (!$domain) {
return 1;
}
$this->info("Found domain {$domain->id}");
$domain->unsuspend();
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 10:44 AM (3 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18798540
Default Alt Text
DomainUnsuspend.php (743 B)

Event Timeline