query() ->when($this->option('tenants'), function ($query) { $query->whereIn(tenancy()->model()->getTenantKeyName(), $this->option('tenants')); }) ->cursor(); } protected function withPending(): ?bool { return $this->option('with-pending') ? true : null; } public function __construct() { parent::__construct(); $this->specifyParameters(); } }