Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120836576
UserSuspend.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
704 B
Referenced Files
None
Subscribers
None
UserSuspend.php
View Options
<?php
namespace
App\Console\Commands
;
use
App\User
;
use
App\Console\Command
;
class
UserSuspend
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'user:suspend {user}'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Suspend a user'
;
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$user
=
$this
->
getUser
(
$this
->
argument
(
'user'
));
if
(!
$user
)
{
return
1
;
}
$this
->
info
(
"Found user: {$user->id}"
);
$user
->
suspend
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:32 PM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18832889
Default Alt Text
UserSuspend.php (704 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline