public function resolveBindings(array $vars)
    {
        // First check if the route $vars as a whole matches any registered composite binding
        if (count($vars) > 1 && !empty($this->compositeBindings)) {
            if ($r = $this->resolveCompositeBinding($vars)) {
                return $r;
            }
        }

        // If no composite binding found, check for explicit and implicit bindings
        if (!empty($this->implicitBindings) || !empty($this->bindings)) {
            foreach ($vars as $var => $value) {
                $vars[$var] = $this->resolveBinding($var, $value);
            }
        }

        return $vars;
    }
public function resolveBindings(array $vars)
    {
        // First check if the route $vars as a whole matches any registered composite binding
        if (count($vars) > 1 && !empty($this->compositeBindings)) {
            if ($r = $this->resolveCompositeBinding($vars)) {
                return $r;
            }
        }

        // If no composite binding found, check for explicit and implicit bindings
        if (!empty($this->implicitBindings) || !empty($this->bindings)) {
            foreach ($vars as $var => $value) {
                $vars[$var] = $this->resolveBinding($var, $value);
            }
        }

        return $vars;
    }
public function resolveBindings ( array $ vars ) { // First check if the route $vars as a whole matches any registered composite binding if ( count ( $ vars ) > 1 && ! empty ( $ this -> compositeBindings ) ) { if ( $ r = $ this -> resolveCompositeBinding ( $ vars ) ) { return $ r ; } } // If no composite binding found, check for explicit and implicit bindings if ( ! empty ( $ this -> implicitBindings ) || ! empty ( $ this -> bindings ) ) { foreach ( $ vars as $ var => $ value ) { $ vars [ $ var ] = $ this -> resolveBinding ( $ var , $ value ) ; } } return $ vars ; }
Resolve bindings for route parameters

@param  array $vars  route parameters

@return array        route parameters with bindings resolved
Resolve bindings for route parameters