Laravel like query for particular language #331
Unanswered
bansivaishnani
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
I used below query and getting me error.
QUERY: $query->where('name->en','%'.$request['filters'][$requestName].'%');
ERROR: SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: character varying ->> unknown\nLINE 1: ...count() as aggregate from "products" where "name"->>'en' = ...\n ^\nHINT: No operator matches the given name and argument types. You might need to add explicit type casts. (SQL: select count() as aggregate from "products" where "name"->>'en' = %Shoes%)
Can you please suggest
I used Laravel 8 with PostgreSQL.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions