Closed franciscoarnaldog closed 5 years ago
You need to include a select statement query when using relations. See notes on demo docs https://datatables.yajrabox.com/eloquent/relationships.
$query = Principal::with(..., 'proveedor', ...)->select('principals.*');
ohh, thank you!
Summary of problem or feature request
I have a large table (principals) with many columns and related tables. We use datatables because is easy to export and filter the data, but now JS is having problems to process the data (with only fews records ~ 1000 in an average computer can lead to 8-15 secs load time !!) So we need to use Ajax and Laravel-Datables is the solution!.
But we have problems...
When a filter is applied in a calculated column other columns get overwritten and show incorrect values, why?
Code snippet of problem
System details