Page MenuHomePhorge

UserSuspend.php
No OneTemporary

Authored By
Unknown
Size
704 B
Referenced Files
None
Subscribers
None

UserSuspend.php

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

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:32 PM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18832889
Default Alt Text
UserSuspend.php (704 B)

Event Timeline