Laravel 5 / Lumen Request Header?

前端 未结 5 612
你的背包
你的背包 2021-02-05 04:32

So I am not really sure how to go about this I have tried a few things and I will list one below however what I am trying to do is store information sent in a http request in a

5条回答
  •  野的像风
    2021-02-05 05:01

    Using

    echo app('request')->header('pubapi');
    

    Instead of

    echo Request::header('pubapi');
    

    Seemed to work perfect. Could someone provide additional explanation to why this worked and my original method didn't?

提交回复
热议问题