So the question is simple:
How to send custom request header, when I testing with Laravel?
I'm trying to make like so:
$this->call('POST', '/my/route', ['params' => 'array'], [], ['X-Custom' => 'header']);
But when I call Request::header('X-Custom')
in my controller, I didn't get it.
Yes, it's available in Request::server('X-Custom')
, but it's not what I need.
So I need to get it in Request::header()
.
PS: Laravel 4