Skip to content

Conversation

@ziadoz
Copy link
Contributor

@ziadoz ziadoz commented Nov 10, 2025

This adds a Config::allowStrayRequests() method, which allows stray requests if they had been previously prevented. The naming and behaviour mirrors Laravel's Http::allowStrayRequests() method.

It would be useful, for example, if you wanted to allow tests to hit a local service, but other tests to continue being forced to use mocks.

@ziadoz ziadoz changed the title Allow stray requests Add allow stray requests method to config Nov 10, 2025
@Sammyjo20 Sammyjo20 force-pushed the feature/allow-stray-requests branch from 97e5785 to afa1210 Compare November 11, 2025 09:30
@Sammyjo20 Sammyjo20 merged commit 339cfe7 into saloonphp:v3 Nov 11, 2025
17 of 20 checks passed
@ziadoz ziadoz deleted the feature/allow-stray-requests branch November 11, 2025 14:04
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