Search Relation and where condition on query builder #2021
TengkuFirmansyah
started this conversation in
BUG
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.
-
Livewire PowerGrid version
v6.6
Livewire version
v3.6
Laravel version
v12.0
Which PHP version are you using?
PHP 8.2
Which Theme are you using?
Bootstrap 5
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
jika query builder saya memiliki kondisi where seperti "status = 1" dan memiliki relationsearch, maka ketika pencarian data itu "status = 1" itu tidak berfungsi, alias tertimpa oleh query orwhere nya relationsearch itu sendiri
Code snippets
On Table :
On SearchHandler.php :
How do you expect it to work?
I just changed this data :
To :
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions