Page MenuHomePhorge

StatusCommand.php
No OneTemporary

Authored By
Unknown
Size
752 B
Referenced Files
None
Subscribers
None

StatusCommand.php

<?php
namespace App\Console\Commands\User;
use App\Console\Command;
class StatusCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'user:status {user}';
/**
* The console command description.
*
* @var string
*/
protected $description = "Show a user's status.";
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$user = $this->getUser($this->argument('user'), true);
if (!$user) {
$this->error("User not found.");
return 1;
}
$this->info("Status ({$user->status}): " . $user->statusText());
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Apr 4, 9:17 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18740358
Default Alt Text
StatusCommand.php (752 B)

Event Timeline