Page MenuHomePhorge

UnrestrictCommand.php
No OneTemporary

Authored By
Unknown
Size
707 B
Referenced Files
None
Subscribers
None

UnrestrictCommand.php

<?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

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)

Event Timeline