php - Laravel 5 / Lumen Request Header? -


so not sure how go have tried few things , list 1 below trying store information sent in http request in php variable.

here view chrome postman of me sending request want ot send. note "pubapi" "header".

postman view

i have been messing around lumen requests can see documented here ( http://lumen.laravel.com/docs/requests ) , have tried using following below possibly display them not working obviously.

echo request::all(); 

i putting in controller , have ...

use illuminate\http\request; 

in controller.

so how store header sending "pubapi" php variable in controller?

edit

not sure if help, looking @ laravel frameworks docs see http://laravel.com/api/5.0/illuminate/http/request.html#method_header trying throws same error in code. example tried following , reached same error.

echo request::header('pubapi'); 

try change illuminate\http\request request.

- use illuminate\http\request; + use request;