protected function hasBasicAuth($request) : bool
  {
    if ($request->headers->has('Authorization') && starts_with($request->header('Authorization'), 'Basic ')) {
      return true;
    }

    return false;
  }
protected function hasBasicAuth($request) : bool
  {
    if ($request->headers->has('Authorization') && starts_with($request->header('Authorization'), 'Basic ')) {
      return true;
    }

    return false;
  }
protected function hasBasicAuth ( $ request ) : bool { if ( $ request -> headers -> has ( 'Authorization' ) && starts_with ( $ request -> header ( 'Authorization' ) , 'Basic ' ) ) { return true ; } return false ; }
Check if request has Basic Authentication header

@param \Modulus\Http\Request $request
@return bool
Check if request has Basic Authentication header