Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117748804
UnrestrictCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
707 B
Referenced Files
None
Subscribers
None
UnrestrictCommand.php
View Options
<?php
namespace
App\Console\Commands\User
;
use
App\Console\Command
;
class
UnrestrictCommand
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'user:unrestrict {user}'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Un-restrict 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
->
unrestrict
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 1:13 AM (1 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ca/c6/0b228be551a11f8ca438b38a6c5e
Default Alt Text
UnrestrictCommand.php (707 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline