Make a show builder.

@param mixed $key
@return Show
508840
protected function detail($key)
    {
        $show = new Show($this->model->findOrFail($key));

        $show->key('Key');
        $show->value('Value');

        return $show;
    }
906137
public function loadFromConfig($key)
    {
        $items = new IlluminateCollection(config()->get($key, []));

        if ($items->isEmpty()) return $this;

        $allHasConfig = $items->every(function ($item) {
            return config()->has($item);
        });

        if ($allHasConfig) {
            $items->each(function ($item) {
                $this->loadFromConfig($item);
            });

            return $this;
        }

        return $this->add($items->toArray());
    }
26379
protected function _addKey($key)
    {
        if ($key == '__stored_keys__') {
            return $this;
        }

        $keys = $this->get('__stored_keys__', []);
        if (!in_array($key, $keys)) {
            array_push($keys, $key);
        }
        $this->set('__stored_keys__', $keys, 24*60*60);
        return $this;
    }
53876
public function addChild($key)
	{
		$object = new StdClassTargetBuilder();
		$this->data->$key = new \stdClass();
		$object->data = $this->data->$key;
		return $object;
	}
935216
protected function callCustom($key, array $parameters = [])
    {
        return $this->app->call($this->customCreators[$key], $parameters);
    }
695594
public function buildRepository(string $key) {
    $repositoryInfo = $this->get($key);

    if (is_null($repositoryInfo)) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s is not a registered repository', [$key]));
    }

    $this->validate($repositoryInfo, $key);

    $repository = new $repositoryInfo['Location'];

    return $repository;
  }
75183
public function newFromKey($key)
    {
        $scope = $this->get($key);
        if ($this->checkRefs && is_array($scope)) {
            $this->replaceRefs($key, $scope);
        }
        $result = new static($scope);

        return $result;
    }
211439
public function key($key = null)
    {
        if (!func_num_args()) {
            return $this->_key;
        }
        $this->_key = $key;
        return $this;
    }
1154305
protected function addGroup(string $key) : HtmlContainer
    {
        $group = (new HtmlContainer('<optgroup>'))
            ->addAttribute('label', $key);

        $this->allOptions['group-' . $key] = $group;

        return $group;
    }
79763
public function alias($key) {
        if (count($this->from) == 1) {
            $this->from = array($key => current($this->from));
        }
        return $this;
    }
1329728
protected function createItem(/*# string */ $key)/*# : CacheItemInterface */
    {
        // validate key first
        $this->validateKey($key);

        // use item factory
        if (is_callable($this->item_factory)) {
            $func = $this->item_factory;
            $item = $func($key, $this, $this->item_config);

        // default CacheItem class
        } else {
            $item = new CacheItem($key, $this, $this->item_config);
        }

        return $item;
    }
261981
public function build(): SetShowScrollBottleneckRectsRequest
	{
		$instance = new SetShowScrollBottleneckRectsRequest();
		if ($this->show === null) {
			throw new BuilderException('Property [show] is required.');
		}
		$instance->show = $this->show;
		return $instance;
	}
1307252
public function build(): SetShowPaintRectsRequest
	{
		$instance = new SetShowPaintRectsRequest();
		if ($this->result === null) {
			throw new BuilderException('Property [result] is required.');
		}
		$instance->result = $this->result;
		return $instance;
	}
45989
private function defineArgument($key)
    {
        $shellArgumentFound = false;
        foreach ($this->shellArguments as $shellArgument) {
            if ($shellArgument['key'] === $key) {
                $shellArgumentFound = true;
            }
        }

        if (! $shellArgumentFound) {
            array_push($this->shellArguments, ['key' => $key, 'value' => '']);
        }

        return $this;
    }
977460
public function column($key)
    {
        $result = array_column($this->all(), $key);

        if (empty($result)) {
            $this->each(function ($item) use (&$result, $key) {
                array_push($result, $item->{$key});
            });
        }

        return new static($result);
    }
988728
public function withEntryFromProvider(string $key, $provider): self
    {
        $this->bindings[$key] = $this->getProviderCreator($provider);
        return $this;
    }
39862
public function parent($key):self
    {
        $breadcrumb = BreadcrumbFacade::get($key);
        $this->parents->put($key, $breadcrumb);

        return $this;
    }