Perhaps something here to help https://www.youtube.com/watch?v=QhzrVlPm6wk
Oct 16, 2023
4
Level 6
Make Form Request Class return json
I validate the incoming request to my webhook with form request class. It switches to "json mode" and returns json automatically if the request contains header "Accept: application/json". However the request is coming from external source and doesn't contain this header, but I want this form request validation class to always be in "json mode" for that webhook.
Level 122
1 like
Please or to participate in this conversation.