We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi everyone,
Im using searchable traits in my website and I would like to know how can I change the method name search into something else?
Ex: user::search($query) to user::searchScope($query)
Thank you for your help.
The text was updated successfully, but these errors were encountered:
You can find the SearchableTrait.php file and cange the name of the Scope
public function scopeSearch(Builder $q, $search, $threshold = null, $entireText = false, $entireTextOnly = false) { return $this->scopeSearchRestricted($q, $search, null, $threshold, $entireText, $entireTextOnly); }
To:
public function scopeSearchScope(Builder $q, $search, $threshold = null, $entireText = false, $entireTextOnly = false) { return $this->scopeSearchRestricted($q, $search, null, $threshold, $entireText, $entireTextOnly); }
Sorry, something went wrong.
No branches or pull requests
Hi everyone,
Im using searchable traits in my website and I would like to know how can I change the method name search into something else?
Ex: user::search($query) to user::searchScope($query)
Thank you for your help.
The text was updated successfully, but these errors were encountered: