$value = $request->header('X-Header-Name');
$value = $request->header('X-Header-Name', 'default value');
// determine if the request contains a given header
if ($request->hasHeader('X-Header-Name')) {
    //
}
// retrieve a bearer token from the Authorization header
$token = $request->bearerToken();
Comments