Skip to content

[11.x] Add helper method to determine stray request prevention state#53232

Merged
taylorotwell merged 1 commit intolaravel:11.xfrom
xurshudyan:prevents-stray-requests
Oct 21, 2024
Merged

[11.x] Add helper method to determine stray request prevention state#53232
taylorotwell merged 1 commit intolaravel:11.xfrom
xurshudyan:prevents-stray-requests

Conversation

@xurshudyan
Copy link
Contributor

This pull request introduces the preventingStrayRequests method, which allows developers to check whether the system is configured to prevent real (stray) API requests. The method is useful in testing environments to ensure all requests are faked and can be used in production or development environments to conditionally log, debug, or handle requests.

@xurshudyan xurshudyan changed the title Add helper method to determine stray request prevention state [11.x] Add helper method to determine stray request prevention state Oct 18, 2024
@taylorotwell taylorotwell merged commit 6ff9ae1 into laravel:11.x Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants