public function query($key = null, $default = null)
    {
        $queries = $this->getQueryParams();

        return is_null($key) ? $queries : data_get($queries, $key, $default);
    }
public function query($key = null, $default = null)
    {
        $queries = $this->getQueryParams();

        return is_null($key) ? $queries : data_get($queries, $key, $default);
    }
public function query ( $ key = null , $ default = null ) { $ queries = $ this -> getQueryParams ( ) ; return is_null ( $ key ) ? $ queries : data_get ( $ queries , $ key , $ default ) ; }
Retrieve a query string item from the request.

@param string            $key
@param null|array|string $default

@return array|string
Retrieve a query string item from the request .