0👍
Just to share what I found:
I think the middleware I created couldn’t attach the headers because Laravel’s dd()
function terminates the entire request in the middle.
So I guess I will just have to make a habit to include the variable in the json response every time when there is a variable that I wanna dump out.
Please let me know if there is anyone with the better solution!
Source:stackexchange.com