Page MenuHomePhorge

UnrestrictCommand.php
No OneTemporary

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
Fri, Nov 21, 11:48 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387468
Default Alt Text
UnrestrictCommand.php (707 B)

Event Timeline