public function attribute($name)
    {
        $exists = isset($this->attributes[$name]);

        return $exists ? $this->attributes[$name] : null;
    }
public function attribute($name)
    {
        $exists = isset($this->attributes[$name]);

        return $exists ? $this->attributes[$name] : null;
    }
public function attribute ( $ name ) { $ exists = isset ( $ this -> attributes [ $ name ] ) ; return $ exists ? $ this -> attributes [ $ name ] : null ; }
Returns an instance with the specified derived request attribute.

@param  string $name
@return mixed
Returns an instance with the specified derived request attribute .