How to set headers for forwarded request
In case anyone might need this i just wanted to post it could help someone
$request =new Request();
$request->headers->set('Authorization', {{your_key_here}});
Ok, i think you need to set the headers like so:
$request = Request::create(route('api.v1.b.show', ['booking' => 4]), 'GET');
$request->headers->set('X-Authorization', 'xxxxx');
That is the answer to your question.
My question is: Where can we set this headers for every api request(forwarding)? Because i personally have 5 headers to set with the request and i don't want to repeat myself.