protected function makeModelShowFieldDataForAttributeData(ModelAttributeData $attribute, ModelInformationInterface $info)
    {
        $primaryIncrementing = $attribute->name === $this->model->getKeyName() && $info->incrementing;

        return new ModelShowFieldData([
            'source'         => $attribute->name,
            'strategy'       => $this->determineListDisplayStrategyForAttribute($attribute),
            'style'          => $primaryIncrementing ? 'primary-id' : null,
            'label'          => ucfirst(str_replace('_', ' ', snake_case($attribute->name))),
        ]);
    }
protected function makeModelShowFieldDataForAttributeData(ModelAttributeData $attribute, ModelInformationInterface $info)
    {
        $primaryIncrementing = $attribute->name === $this->model->getKeyName() && $info->incrementing;

        return new ModelShowFieldData([
            'source'         => $attribute->name,
            'strategy'       => $this->determineListDisplayStrategyForAttribute($attribute),
            'style'          => $primaryIncrementing ? 'primary-id' : null,
            'label'          => ucfirst(str_replace('_', ' ', snake_case($attribute->name))),
        ]);
    }
protected function makeModelShowFieldDataForAttributeData ( ModelAttributeData $ attribute , ModelInformationInterface $ info ) { $ primaryIncrementing = $ attribute -> name === $ this -> model -> getKeyName ( ) && $ info -> incrementing ; return new ModelShowFieldData ( [ 'source' => $ attribute -> name , 'strategy' => $ this -> determineListDisplayStrategyForAttribute ( $ attribute ) , 'style' => $ primaryIncrementing ? 'primary-id' : null , 'label' => ucfirst ( str_replace ( '_' , ' ' , snake_case ( $ attribute -> name ) ) ) , ] ) ; }
Makes data set for show field given attribute data.

@param ModelAttributeData                         $attribute
@param ModelInformationInterface|ModelInformation $info
@return ModelShowFieldData
Makes data set for show field given attribute data .