Page MenuHomePhorge

DomainSuspend.php
No OneTemporary

Size
728 B
Referenced Files
None
Subscribers
None

DomainSuspend.php

<?php
namespace App\Console\Commands;
use App\Console\Command;
use App\Domain;
class DomainSuspend extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'domain:suspend {domain}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Suspend a domain';
/**
* 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->suspend();
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Jun 12, 4:09 AM (12 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914783
Default Alt Text
DomainSuspend.php (728 B)

Event Timeline