protected function callClosureAttributes(array $attributes)
    {
        foreach ($attributes as &$attribute) {
            $attribute = $attribute instanceof Closure
                ? $attribute($attributes) : $attribute;
        }

        return $attributes;
    }
protected function callClosureAttributes(array $attributes)
    {
        foreach ($attributes as &$attribute) {
            $attribute = $attribute instanceof Closure
                ? $attribute($attributes) : $attribute;
        }

        return $attributes;
    }
protected function callClosureAttributes ( array $ attributes ) { foreach ( $ attributes as & $ attribute ) { $ attribute = $ attribute instanceof Closure ? $ attribute ( $ attributes ) : $ attribute ; } return $ attributes ; }
Evaluate any Closure attributes on the attribute array.

@param array $attributes

@return array
Evaluate any Closure attributes on the attribute array .