mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:34:04 +00:00
Fix issues
This commit is contained in:
parent
0a37eb487a
commit
7bb05873f0
2 changed files with 4 additions and 3 deletions
|
|
@ -5,9 +5,11 @@ declare(strict_types=1);
|
||||||
namespace Stancl\Tenancy\Commands;
|
namespace Stancl\Tenancy\Commands;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
use Stancl\Tenancy\Concerns\HasATenantsOption;
|
||||||
|
|
||||||
class Run extends Command
|
class Run extends Command
|
||||||
{
|
{
|
||||||
|
use HasATenantsOption;
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
*
|
*
|
||||||
|
|
@ -21,7 +23,6 @@ class Run extends Command
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = "tenants:run {commandname : The command's name.}
|
protected $signature = "tenants:run {commandname : The command's name.}
|
||||||
{--tenants=* : The tenant(s) to run the command for. Default: all}
|
|
||||||
{--argument=* : The arguments to pass to the command. Default: none}
|
{--argument=* : The arguments to pass to the command. Default: none}
|
||||||
{--option=* : The options to pass to the command. Default: none}";
|
{--option=* : The options to pass to the command. Default: none}";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,9 @@ trait HasATenantsOption
|
||||||
->cursor();
|
->cursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function withPending(): bool
|
protected function withPending(): ?bool
|
||||||
{
|
{
|
||||||
return $this->option('with-pending');
|
return $this->option('with-pending') ? true : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue