You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so i am using laravel 5.4 and using datatables ajax with my eloquent is have join table and so on, now i want to do searching/filter it just not working got internal server errror 500 any idea why?
The problem is that you are adding columns to the table which do not exist in the database, and you do not have them marked searchable: false. It is trying to search those columns that do not exist. If you enable debugging, it should have said something very similar SQL ERROR: column 'example.durasi' not found (you can find this response in your browser's web tools since it is called via ajax)
oh.. so how to add searchable: false? where do i need to add mark? welll i never use datatables with ajax and most of the times i just use DOM datatables and it search pretty much fine with the same query/eloquent like up there....
You would add searchable:false (you probably want to disable ordering as well) property to any columns not on the database. It would still be possible to search those columns with the filter() function, but you would have to handle that logic manually.
so i am using laravel 5.4 and using datatables ajax with my eloquent is have join table and so on, now i want to do searching/filter it just not working got internal server errror 500 any idea why?
here is my controller code`
and here is it my datatable jquery
and also here is my table html
The text was updated successfully, but these errors were encountered: