Answers for "ensure a header is included with request laravel"

PHP
0

ensure a header is included with request laravel

// Returns header value with default as fallback
$request->header('someHeader', 'defaultValue');

// Returns boolean
$request->headers->has('someHeader');
Posted by: Guest on January-14-2021

Code answers related to "ensure a header is included with request laravel"

Browse Popular Code Answers by Language