You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: