protected function shouldLog($request)
    {
        foreach (config('LaravelLogger.loggerMiddlewareExcept', []) as $except) {
            if ($except !== '/') {
                $except = trim($except, '/');
            }

            if ($request->is($except)) {
                return false;
            }
        }

        return true;
    }
protected function shouldLog($request)
    {
        foreach (config('LaravelLogger.loggerMiddlewareExcept', []) as $except) {
            if ($except !== '/') {
                $except = trim($except, '/');
            }

            if ($request->is($except)) {
                return false;
            }
        }

        return true;
    }
protected function shouldLog ( $ request ) { foreach ( config ( 'LaravelLogger.loggerMiddlewareExcept' , [ ] ) as $ except ) { if ( $ except !== '/' ) { $ except = trim ( $ except , '/' ) ; } if ( $ request -> is ( $ except ) ) { return false ; } } return true ; }
Determine if the request has a URI that should log.

@param \Illuminate\Http\Request $request

@return bool
Determine if the request has a URI that should log .