ensure a header is included with request laravel

Solutions on MaxInterview for ensure a header is included with request laravel by the best coders in the world

showing results for - "ensure a header is included with request laravel"
Andrea
17 Sep 2016
1// Returns header value with default as fallback
2$request->header('someHeader', 'defaultValue');
3
4// Returns boolean
5$request->headers->has('someHeader');