There’s a withToken
method to attach the Authorization
header to a request.
// Booo!Http::withHeader([ 'Authorization' => 'Bearer dQw4w9WgXcq']) // YES!Http::withToken('dQw4w9WgXcq');
Tip given by @p3ym4n
Only until Jan 16th: coupon RESOLUTION25 for 40% off Yearly/Lifetime membership!
Read more hereThere’s a withToken
method to attach the Authorization
header to a request.
// Booo!Http::withHeader([ 'Authorization' => 'Bearer dQw4w9WgXcq']) // YES!Http::withToken('dQw4w9WgXcq');
Tip given by @p3ym4n