Skip to content
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

Using orWhereRaw #52

Open
fabiobap opened this issue Feb 2, 2022 · 1 comment
Open

Using orWhereRaw #52

fabiobap opened this issue Feb 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@fabiobap
Copy link

fabiobap commented Feb 2, 2022

I kinda need to search in some column that holds html stuff and I must search as

orWhereRaw('regexp_replace(description, "<[^>]*>", "") like ?', "%{$searchTerm}%")
->orWhereRaw('regexp_replace(description, "<[^>]*>", "") like ?', '%' . htmlentities($searchTerm) . '%');

is there any way to make it work?

@pascalbaljet
Copy link
Contributor

It probably wouldn't work because it expects the column argument to be a string. I'll check out if I can support DB::raw() statements.

@pascalbaljet pascalbaljet added the enhancement New feature or request label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants