Hi,
I posted this on SO and haven't found a solution yet: https://stackoverflow.com/questions/24396615/adding-headers-to-internal-requests-in-laravel-4/24399606
The short story: I want to be able to set headers when creating internal requests. Basically I am sending requests from an adminpanel to an API, both adminpanel and API being built in the same Laravel application, like this:
$request = Request::create($endpoint, $method, $parameters, $cookies, $files, $server, $content);
$this->response = Route::dispatch($request);
Now, how can I pass a public api key, a signature, etc using headers when creating the above request?
Thank you!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community