andersao / laravel-request-logger

HTTP request logger middleware for Laravel
http://andersao.github.io/laravel-request-logger
242 stars 57 forks source link

Bug in ResponseLoggerMiddleware.php #5

Open ajeeshcitrus opened 8 years ago

ajeeshcitrus commented 8 years ago

As per the documentation the config file doesn't hold a config variable 'exclude', so it was throwing error in the foreach statement

$exclude = config('request-logger.exclude');
        if($exclude){ //Added an if , if an exclude is coming as null so that error was not thrown
            foreach($exclude as $path) {
            if($request->is($path)) return true;
        }    
        }
        return false;

Please fix it.

jclyons52 commented 8 years ago

submitted pull request