Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7057856
DomainSuspend.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
728 B
Referenced Files
None
Subscribers
None
DomainSuspend.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 12, 4:09 AM (13 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914783
Default Alt Text
DomainSuspend.php (728 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment