I want my boolean field which is displayed as 'Approved' and 'Not Approved' in the frontend, is it possible for me to filter this as displayed in the frontend?
My filtering logic
$search = '%'.$this->search . '%';
$comments = Comment
::where('title', 'like', $search)
->orWhere('name', 'like', $search)
->orWhere('email', 'like', $search)
->orWhere('message', 'like', $search)
->orWhere('approved', 'like', $search)
->orderBy('created_at', 'desc')
->paginate($this->paginate);
I can only search the approved column as 0 and 1.