Http::beforeSending
not working
#50343
-
Shouldn't this work in this way? The |
Beta Was this translation helpful? Give feedback.
Answered by
henzeb
Mar 2, 2024
Replies: 1 comment
-
Next time paste text instead of a screenshot. It's cumbersome to help, now I have to type it all over and show you what you misunderstood. Http::beforeSending(fn()=>dump('here'))->get('https://httpstat.us/200')->body(); beforeSending returns a pending request. it's not a global feature. on a sidenote: There are better ways to dump... https://laravel.com/docs/10.x/http-client#dumping-requests |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
foremtehan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Next time paste text instead of a screenshot. It's cumbersome to help, now I have to type it all over and show you what you misunderstood.
beforeSending returns a pending request. it's not a global feature.
on a sidenote: There are better ways to dump... https://laravel.com/docs/10.x/http-client#dumping-requests