Page MenuHomePhorge

DebugStopCommand.php
No OneTemporary

Authored By
Unknown
Size
721 B
Referenced Files
None
Subscribers
None

DebugStopCommand.php

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

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:18 PM (3 d, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18740352
Default Alt Text
DebugStopCommand.php (721 B)

Event Timeline