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
You can do it by request()->header('pubapi') also.
request()->header('pubapi')
I prefer to use request() helper function than Request class its self. Because it can be used without use/import any class in the controller.
request()
Request
use