Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Only allow routes for tests #1129

Closed
wants to merge 1 commit into from
Closed

[TASK] Only allow routes for tests #1129

wants to merge 1 commit into from

Conversation

bmoex
Copy link

@bmoex bmoex commented Sep 17, 2024

On test environments this feature can be abused and therefor can be a liability. This looks for the env == testing to only allow it to be accessable during tests.

If needed, the $this->app->isLocal() can be added to allow local abusing.

On test environments this feature can be abused and therefor can be a
liability. This looks for the env == testing to only allow it to be
accessable during tests.

If needed, the `$this->app->isLocal()` can be added to allow local abusing.
@taylorotwell
Copy link
Member

I am closing this pull request because it lacks sufficient explanation, tests, or both. It is difficult for us to merge pull requests without these things because the change may introduce breaking changes to the framework.

Feel free to re-submit your change with a thorough explanation of the feature and tests - integration tests are preferred over unit tests. Please include it's benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.

Thanks!

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