I can not use the Include parse together with the datatable
$checkins = $this->model->orderBy('created_at', 'desc');
$this->fractal->parseIncludes(['customer.fidelityCheckins.status']);
return
Datatables::of( $checkins)
->setTransformer(new FidelityCheckinTransformer)
->setSerializer(new ArraySerializer())
->addColumn('details', function ($checkins) {
return view('fidelity::checkins.partials.table.checkin-details', compact('checkins') );
})
->addColumn('qtyCheckinPending', function ($checkins) {
return view('fidelity::checkins.partials.table.checkin-pending', compact('checkins') );
})
->rawColumns(['details', 'qtyCheckinPending'])
->make(true);
You might be using the wrong fractal manager instance? Try using:
app('datatables.fractal')->parseIncludes(['customer.fidelityCheckins.status']);
You might be using the wrong fractal manager instance? Try using:
app('datatables.fractal')->parseIncludes(['customer.fidelityCheckins.status']);
Thank you @yajra , all ok...
Most helpful comment
You might be using the wrong fractal manager instance? Try using: