Great, thanks. I'll try that.
What's weird is that I've been able to log the request body and parameters to my lavavel.log file when running locally and testing with PostMan, but when I run it on Heroku I don't get anything added to the logs.
@ZAK - Thanks! That looks awesome, but requires 5.7.7 or higher. I'm using 5.6 and don't have the option to go through a full migration and all the necessary testing at this point.
I'm trying to log the contents of $request now, but finding that it's not actually spitting anything to my logs.
I'm hosting on Heroku and have my logs set to daily and log_level set to debug and using Log::debug(request()) at the top of my routes/web.php file to hopefully capture all incoming requests, but that's not adding anything to my Heroku logs when I tail them.
I'm setting up a Laravel app that may receive webhooks from a 3rd party service. I want to use the auth:api for authentication by passing the api_token value for the user. When testing using PostMan everything is working properly, but when receiving the same request from the 3rd party service the api_token isn't working and a redirect is returned.
I'm trying to troubleshoot this by logging in the incoming request from the 3rd party service. Where should I add the logging to figure out why the authentication is not working.
I'm guessing this might have something to do with the 3rd party service not passing accept = application/json , but I want to confirm that. If that's the case, I have no control over the request, so need to be able to handle it on my end.