laravel-request-logger icon indicating copy to clipboard operation
laravel-request-logger copied to clipboard

Bug in ResponseLoggerMiddleware.php

Open ajeeshcitrus opened this issue 9 years ago • 1 comments
trafficstars

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.

ajeeshcitrus avatar Feb 10 '16 11:02 ajeeshcitrus