Support the ongoing development of Laravel.io →
Requests Input Architecture

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!

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

niwt niwt Joined 23 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.