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