public function match(Request $request)
    {
        foreach ($this->matchers as $matcher) {
            $matcherInstance = app($matcher);
            if ($matcherInstance->matches($request->getPathInfo())) {
                return $matcherInstance->render($request);
            }
        }

        return $this->handlePageNotFound();
    }
public function match(Request $request)
    {
        foreach ($this->matchers as $matcher) {
            $matcherInstance = app($matcher);
            if ($matcherInstance->matches($request->getPathInfo())) {
                return $matcherInstance->render($request);
            }
        }

        return $this->handlePageNotFound();
    }
public function match ( Request $ request ) { foreach ( $ this -> matchers as $ matcher ) { $ matcherInstance = app ( $ matcher ) ; if ( $ matcherInstance -> matches ( $ request -> getPathInfo ( ) ) ) { return $ matcherInstance -> render ( $ request ) ; } } return $ this -> handlePageNotFound ( ) ; }
Loads a page by it's slug.

@param Request $request
Loads a page by it s slug .