laravel-request-logger
laravel-request-logger copied to clipboard
Missing request-logger.exclude
I'm getting this error message seemingly because config('request-logger.exclude') is returning null.
[2016-02-25 00:26:48] local.ERROR: exception 'ErrorException' with message 'Invalid argument supplied for foreach()' in /var/www/html/vendor/prettus/laravel-request-logger/src/Prettus/RequestLogger/Middlewares/ResponseLoggerMiddleware.php:44
im having the same issue here plz reply
@oceanapplications i added , 'exclude' => [] to the prettus config file to stop the error
Also needed to make the same change as @AnassBounhar to avoid exceptions like @oceanapplications mentions.
To clarify the work-around as @AnassBounhar stated; 'exclude' => []
pair MUST be the child of return
ed array, so logger
key is in the same level as exclude
key.