src/Routing/Adapter/Lumen.php
protected function normalizeRequestUri(Request $request)
    {
        $query = $request->server->get('QUERY_STRING');

        $uri = '/'.trim(str_replace('?'.$query, '', $request->server->get('REQUEST_URI')), '/').($query ? '?'.$query : '');

        $request->server->set('REQUEST_URI', $uri);
    }
protected function normalizeRequestUri(Request $request)
    {
        $query = $request->server->get('QUERY_STRING');

        $uri = '/'.trim(str_replace('?'.$query, '', $request->server->get('REQUEST_URI')), '/').($query ? '?'.$query : '');

        $request->server->set('REQUEST_URI', $uri);
    }
protected function normalizeRequestUri ( Request $ request ) { $ query = $ request -> server -> get ( 'QUERY_STRING' ) ; $ uri = '/' . trim ( str_replace ( '?' . $ query , '' , $ request -> server -> get ( 'REQUEST_URI' ) ) , '/' ) . ( $ query ? '?' . $ query : '' ) ; $ request -> server -> set ( 'REQUEST_URI' , $ uri ) ; }
Normalize the request URI so that Lumen can properly dispatch it.

@param \Illuminate\Http\Request $request

@return void
Normalize the request URI so that Lumen can properly dispatch it .