There’s a withToken method to attach the Authorization header to a request.
// Less efficient approach:
Http::withHeader([
'Authorization' => 'Bearer dQw4w9WgXcq'
])
// More efficient approach:
Http::withToken('dQw4w9WgXcq');
There’s a withToken method to attach the Authorization header to a request.
// Less efficient approach:
Http::withHeader([
'Authorization' => 'Bearer dQw4w9WgXcq'
])
// More efficient approach:
Http::withToken('dQw4w9WgXcq');