Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in ResponseLoggerMiddleware.php #5

Open
ajeeshcitrus opened this issue Feb 10, 2016 · 1 comment
Open

Bug in ResponseLoggerMiddleware.php #5

ajeeshcitrus opened this issue Feb 10, 2016 · 1 comment

Comments

@ajeeshcitrus
Copy link

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
Copy link

submitted pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant