Page MenuHomePhorge

UserUnsuspend.php
No OneTemporary

Authored By
Unknown
Size
705 B
Referenced Files
None
Subscribers
None

UserUnsuspend.php

<?php
namespace App\Console\Commands;
use App\Console\Command;
class UserUnsuspend extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'user:unsuspend {user}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Remove a user suspension';
/**
* 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->unsuspend();
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:58 PM (6 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18719088
Default Alt Text
UserUnsuspend.php (705 B)

Event Timeline