Hi,
I have complex query to get data from many tables to show it in datatable using Yarja in laravel,
My issue is when fetch data from other tables and some fields still empty not yet have values entered, show me error and can't get data because some fields is still null value, So how can return NULL value or treatment with null using Yarja , hope you understand me and help me with example
Best regards,
M.Fakira
Hi M.Fakira
Under dataTable function, you can do checking or modify the column value before it renders. Example below;
->editColumn("customer", function (Visa $model) {
if(isset($model->customer_id)) {
return $model->customer_id;
}
return "";
})