Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/DomainListUsers.php
<?php | <?php | ||||
namespace App\Console\Commands; | namespace App\Console\Commands; | ||||
use Illuminate\Console\Command; | use App\Console\Command; | ||||
class DomainListUsers extends Command | class DomainListUsers extends Command | ||||
{ | { | ||||
/** | /** | ||||
* The name and signature of the console command. | * The name and signature of the console command. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
Show All 18 Lines | class DomainListUsers extends Command | ||||
/** | /** | ||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$domain = \App\Domain::where('namespace', $this->argument('domain'))->first(); | $domain = $this->getDomain($this->argument('domain')); | ||||
if (!$domain) { | if (!$domain) { | ||||
return 1; | return 1; | ||||
} | } | ||||
if ($domain->isPublic()) { | if ($domain->isPublic()) { | ||||
$this->error("This domain is a public registration domain."); | $this->error("This domain is a public registration domain."); | ||||
return 1; | return 1; | ||||
Show All 35 Lines |