original_string: public function parse(Request $request)
      {
          $header = $request->headers->get($this->header) ?: $this->fromAltHeaders($request);
  
          if ($header && preg_match('/'.$this->prefix.'\s*(\S+)\b/i', $header, $matches)) {
              return $matches[1];
          }
      }
code: public function parse(Request $request)
      {
          $header = $request->headers->get($this->header) ?: $this->fromAltHeaders($request);
  
          if ($header && preg_match('/'.$this->prefix.'\s*(\S+)\b/i', $header, $matches)) {
              return $matches[1];
          }
      }
code_tokens: public function parse ( Request $ request ) { $ header = $ request -> headers -> get ( $ this -> header ) ? : $ this -> fromAltHeaders ( $ request ) ; if ( $ header && preg_match ( '/' . $ this -> prefix . '\s*(\S+)\b/i' , $ header , $ matches ) ) { return $ matches [ 1 ] ; } }
docstring: Try to parse the token from the request header.
  
  @param  \Illuminate\Http\Request  $request
  
  @return null|string
docstring_tokens: Try to parse the token from the request header .