original_string: public function cookie($key = null, $default = null)
      {
          $cookies = $this->getCookieParams();
  
          return is_null($key) ? $cookies : data_get($cookies, $key, $default);
      }
code: public function cookie($key = null, $default = null)
      {
          $cookies = $this->getCookieParams();
  
          return is_null($key) ? $cookies : data_get($cookies, $key, $default);
      }
code_tokens: public function cookie ( $ key = null , $ default = null ) { $ cookies = $ this -> getCookieParams ( ) ; return is_null ( $ key ) ? $ cookies : data_get ( $ cookies , $ key , $ default ) ; }
docstring: Retrieve a cookie from the request.
  
  @param string            $key
  @param null|array|string $default
  
  @return array|string
docstring_tokens: Retrieve a cookie from the request .