src/Core/BootChecker.php
protected function requestRouteMatchesPrefix($prefix)
    {
        $prefixSegments = $this->splitPrefixSegments($prefix);
        $request = request();

        foreach ($prefixSegments as $index => $segment) {
            if (strtolower($request->segment($index + 1)) !== $segment) {
                return false;
            }
        }

        return true;
    }
protected function requestRouteMatchesPrefix($prefix)
    {
        $prefixSegments = $this->splitPrefixSegments($prefix);
        $request = request();

        foreach ($prefixSegments as $index => $segment) {
            if (strtolower($request->segment($index + 1)) !== $segment) {
                return false;
            }
        }

        return true;
    }
protected function requestRouteMatchesPrefix ( $ prefix ) { $ prefixSegments = $ this -> splitPrefixSegments ( $ prefix ) ; $ request = request ( ) ; foreach ( $ prefixSegments as $ index => $ segment ) { if ( strtolower ( $ request -> segment ( $ index + 1 ) ) !== $ segment ) { return false ; } } return true ; }
Returns whether a given route prefix matches the current request.

@param string $prefix
@return bool
Returns whether a given route prefix matches the current request .