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

Linter: Prevent dynamic where's in eloquent #5

Open
ventrec opened this issue Mar 5, 2021 · 0 comments
Open

Linter: Prevent dynamic where's in eloquent #5

ventrec opened this issue Mar 5, 2021 · 0 comments

Comments

@ventrec
Copy link
Member

ventrec commented Mar 5, 2021

Prevent the use of dynamic where's when using eloquent. Dynamic where's makes it much harder to refactor code, and harder to get an overview of where different model properties have been used.

Important
Remember to make a whitelist of valid where methods. This list should contain all "where" methods on a collection aswell as the valid "where" methods for eloquent.

We also need a way to identify what is related to an eloquent query in order to avoid accidental targeting of other libraries / services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant