original_string: public function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
      {
          $parameters = $this->formatParameters($parameters);
  
          if ($expiration) {
              $parameters = $parameters + ['expires' => $this->availableAt($expiration)];
          }
  
          ksort($parameters);
  
          $key = call_user_func($this->keyResolver);
  
          return $this->route($name, $parameters + [
              'signature' => hash_hmac('sha256', $this->route($name, $parameters, $absolute), $key),
          ], $absolute);
      }
code: public function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
      {
          $parameters = $this->formatParameters($parameters);
  
          if ($expiration) {
              $parameters = $parameters + ['expires' => $this->availableAt($expiration)];
          }
  
          ksort($parameters);
  
          $key = call_user_func($this->keyResolver);
  
          return $this->route($name, $parameters + [
              'signature' => hash_hmac('sha256', $this->route($name, $parameters, $absolute), $key),
          ], $absolute);
      }
code_tokens: public function signedRoute ( $ name , $ parameters = [ ] , $ expiration = null , $ absolute = true ) { $ parameters = $ this -> formatParameters ( $ parameters ) ; if ( $ expiration ) { $ parameters = $ parameters + [ 'expires' => $ this -> availableAt ( $ expiration ) ] ; } ksort ( $ parameters ) ; $ key = call_user_func ( $ this -> keyResolver ) ; return $ this -> route ( $ name , $ parameters + [ 'signature' => hash_hmac ( 'sha256' , $ this -> route ( $ name , $ parameters , $ absolute ) , $ key ) , ] , $ absolute ) ; }
docstring: Create a signed route URL for a named route.
  
  @param  string  $name
  @param  array  $parameters
  @param  \DateTimeInterface|\DateInterval|int  $expiration
  @param  bool  $absolute
  @return string
docstring_tokens: Create a signed route URL for a named route .