-
Notifications
You must be signed in to change notification settings - Fork 291
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
Searchable column json #190
Comments
SOLVED .... $column = str_replace('.', ' |
@nicolaslopezj Can you provide a fix for this? |
For Postgresql overwrite if ($this->isPostgresqlDatabase()) {
$field = "LOWER(" . $column . "::text) " . $compare . " ?";
return '(case when ' . $field . ' then ' . $relevance . ' else 0 end)';
} |
Solution For SQLite (this is the worse code of my life, I'm sorry, but that worked ¯_(ツ)_/¯ )
|
This code worked for me on mariadb...
|
Appreciate if a fix is provided as JSON columns are kind of common already/these days. @nicolaslopezj For time being, I have extracted out your Searchable Trait (into a new trait) and made below changes. In Modal's I have used To support this notation, I have added edited in In
In
PS: |
How I can search by json column ?
I did
Now in laravel
The text was updated successfully, but these errors were encountered: