Global HTTP middleware in Laravel 10.x
July 3, 2023 — Sometimes when working with third-party APIs, there might be a need to add common headers to all the outgoing requests. For instance, you might want to add an Authorization
header to all the outgoing requests to authenticate the requests.