Server Side Processing - database ID search results only
Server Side Processing - database ID search results only
Hi,
I have implemented datatables in a fairly basic manner setting the serverside processing to true. For reference, I followed this tutorial (mostly) as a guideline since I am using Laravel 7. https://fahmidasclassroom.com/laravel-7-crud-using-datatables/
For some reason, the serverside processing only looks at the database ID in the search. So if I type in the ID of the record then I will get results. But if I look for a string (like someones name) it doesnt return results.
Any pointers on what needs to be allowed to search those other fields? I tried setting the "searchable" to true explicitly but that had no effect.
Thanks!
Answers
I should have added that this is my current script.
That will be down to the server-side script. Can you post that here too, please,
Colin
@colin here is the controller function.
Thanks for the script. I'm afraid you'll need to contact the author of the Laravel server-side processing library though, as I'm not familiar with their API. At a guess it looks like the
action
column should be searchable, but I'm really not sure how their API is meant to work.Allan