original_string: public static function resolveForRoute($container, $route)
      {
          $parameters = $route->parameters();
  
          foreach ($route->signatureParameters(UrlRoutable::class) as $parameter) {
              if (! $parameterName = static::getParameterName($parameter->name, $parameters)) {
                  continue;
              }
  
              $parameterValue = $parameters[$parameterName];
  
              if ($parameterValue instanceof UrlRoutable) {
                  continue;
              }
  
              $instance = $container->make($parameter->getClass()->name);
  
              if (! $model = $instance->resolveRouteBinding($parameterValue)) {
                  throw (new ModelNotFoundException)->setModel(get_class($instance));
              }
  
              $route->setParameter($parameterName, $model);
          }
      }
code: public static function resolveForRoute($container, $route)
      {
          $parameters = $route->parameters();
  
          foreach ($route->signatureParameters(UrlRoutable::class) as $parameter) {
              if (! $parameterName = static::getParameterName($parameter->name, $parameters)) {
                  continue;
              }
  
              $parameterValue = $parameters[$parameterName];
  
              if ($parameterValue instanceof UrlRoutable) {
                  continue;
              }
  
              $instance = $container->make($parameter->getClass()->name);
  
              if (! $model = $instance->resolveRouteBinding($parameterValue)) {
                  throw (new ModelNotFoundException)->setModel(get_class($instance));
              }
  
              $route->setParameter($parameterName, $model);
          }
      }
code_tokens: public static function resolveForRoute ( $ container , $ route ) { $ parameters = $ route -> parameters ( ) ; foreach ( $ route -> signatureParameters ( UrlRoutable :: class ) as $ parameter ) { if ( ! $ parameterName = static :: getParameterName ( $ parameter -> name , $ parameters ) ) { continue ; } $ parameterValue = $ parameters [ $ parameterName ] ; if ( $ parameterValue instanceof UrlRoutable ) { continue ; } $ instance = $ container -> make ( $ parameter -> getClass ( ) -> name ) ; if ( ! $ model = $ instance -> resolveRouteBinding ( $ parameterValue ) ) { throw ( new ModelNotFoundException ) -> setModel ( get_class ( $ instance ) ) ; } $ route -> setParameter ( $ parameterName , $ model ) ; } }
docstring: Resolve the implicit route bindings for the given route.
  
  @param  \Illuminate\Container\Container  $container
  @param  \Illuminate\Routing\Route  $route
  @return void
  
  @throws \Illuminate\Database\Eloquent\ModelNotFoundException
docstring_tokens: Resolve the implicit route bindings for the given route .