public function getAttributes()
    {
        $attributes = [];
        
        foreach ($this->attributes as $name => $attr) {
            $value = $attr instanceof \Closure || $attr instanceof DerivedAttributeInterface ? $attr($this) : $attr;
            $attributes[$name] = $value;
        }
        
        return $attributes;
    }
public function getAttributes()
    {
        $attributes = [];
        
        foreach ($this->attributes as $name => $attr) {
            $value = $attr instanceof \Closure || $attr instanceof DerivedAttributeInterface ? $attr($this) : $attr;
            $attributes[$name] = $value;
        }
        
        return $attributes;
    }
public function getAttributes ( ) { $ attributes = [ ] ; foreach ( $ this -> attributes as $ name => $ attr ) { $ value = $ attr instanceof \ Closure || $ attr instanceof DerivedAttributeInterface ? $ attr ( $ this ) : $ attr ; $ attributes [ $ name ] = $ value ; } return $ attributes ; }
Retrieve attributes derived from the request.

The request "attributes" may be used to allow injection of any
parameters derived from the request: e.g., the results of path
match operations; the results of decrypting cookies; the results of
deserializing non-form-encoded message bodies; etc.

Attribute names are automatically turned into snake_case.

@return mixed[] Attributes derived from the request.
Retrieve attributes derived from the request .