Skip to content
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by foremtehan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants