Hi. When I use a where statement and pass through a search query, it is case sensitive. I.e. If the json_data->full_name
value is “Chris” and I search “chris” it returns no results! But if I search “Chris” it finds it. Not come across this before, any ideas?
public function render()
{
return view('livewire.backend.form-submissions.submission-index')
->layout('layouts.frontend')
->with([
'collection' => FormData::where('json_data->full_name', 'like', '%' . $this->search . '%')
->orWhere('status', $this->status)
->orderBy('created_at', 'desc')
->get()
]);
}