Devise\Pages\Interpreter\DeviseTag::createChainArray PHP Method

createChainArray() protected method

Furthermore we cannot assume that this is a model, we will have to check to ensure it is a Eloquent model later when the code is actually running. At this point we are just passing variables, the check actually happens in the devise_model method which is an alias for dvsPageData->addModel.
protected createChainArray ( string $key ) : string
$key string
return string
    protected function createChainArray($key)
    {
        $chain = [];
        $index = '';
        $split = explode('->', $key);
        foreach ($split as $name) {
            $index .= $index ? '->' . $name : $name;
            $chain["{$name}"] = "{$index}";
        }
        return $this->arrayAsString(array_reverse($chain));
    }