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
Yes, you are right. I'm striving to add a bunch of amazing features to this package. So I'll consider a meaningful naming convention for custom methods.
I don't think filter naming conventions should be a 1:1 match. This has too much potential with collision/confusion with attributes or other methods.
I'd suggest they should follow the existing builder "scopeX" naming convention, or "filterX".
For example, a "keywords" filter should be one of these:
For backward compatibility, the code could still look for an exact match method, but I think the package should transition away from this.
For more flexibility, a value of the "acceptRequest" array could specify which method to use. For example:
This would result in calling $model->whereKeywords() with the 'keywords' request input value, defined as Model::scopeWhereKeywords().
The text was updated successfully, but these errors were encountered: