protected function fastCheck(array $routes, $request)
    {
        $domain = $request->getHost();

        $path = ($request->path() == '/') ? '/' : '/' .$request->path();

        foreach (array($domain .$path, $path) as $key) {
            $route = Arr::get($routes, $key);

            if (! is_null($route) && $route->matches($request, true)) {
                return $route;
            }
        }
    }
protected function fastCheck(array $routes, $request)
    {
        $domain = $request->getHost();

        $path = ($request->path() == '/') ? '/' : '/' .$request->path();

        foreach (array($domain .$path, $path) as $key) {
            $route = Arr::get($routes, $key);

            if (! is_null($route) && $route->matches($request, true)) {
                return $route;
            }
        }
    }
protected function fastCheck ( array $ routes , $ request ) { $ domain = $ request -> getHost ( ) ; $ path = ( $ request -> path ( ) == '/' ) ? '/' : '/' . $ request -> path ( ) ; foreach ( array ( $ domain . $ path , $ path ) as $ key ) { $ route = Arr :: get ( $ routes , $ key ) ; if ( ! is_null ( $ route ) && $ route -> matches ( $ request , true ) ) { return $ route ; } } }
Determine if a route in the array fully matches the request - the fast way.

@param  array  $routes
@param  \Nova\http\Request  $request
@return \Nova\Routing\Route|null
Determine if a route in the array fully matches the request - the fast way .