I am using http://datatables.net/and https://github.com/yajra/laravel-datatables-oracle. When I try search I get a popup with an "Ajax error" I seemed to have narrowed it down to being an issue when ever there is a join in the query.
Here is method used for the Ajax request (removed fields for simplicity):
$leads = Lead::leftJoin('lead_status', 'leads.status', '=', 'lead_status.id')
->select('leads.id', 'leads.email', 'lead_status.status');
This works fine as I said it is only when I try search do I get the error, I don't get it when sorting or paging through results.
When there is no join in the query then I don't get any issues.
Been on this for a while now and not sure what to do..