I am able to see what is being sent over with beeceptor.
But i am confused on how to display the data that is being sent over on my website itself or even a simple dd()
Once i capture a certain key value, i am wanting to refresh a certain view page, passed with that response data.
The webhook is typically headless; and a different session to the one that may have requested the certain view page. Would a user be visiting the page whenever the webhook was received?
You could broadcast an event whenever the webhook is received, and have a (Larave Echo) listener on the web page to refresh the page.
In a normal request cycle, data is sent to the client in response to a request
When the client is not requesting anything then nothing can be sent to client. There are two methods of dealing with this;
polling: the client (using javascript) keeps asking the server if it has any new data. You can also implement polling with Livewire without needing any javascript expertise.
Websockets: the client registers an open web socket with a websocket server like pusher, the server can broadcast to all the clients that are listening. See Laravel Echo.