File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 33namespace Yajra \DataTables \Services ;
44
55use Illuminate \Http \JsonResponse ;
6+ use Yajra \DataTables \Html \Column ;
67use Illuminate \Support \Collection ;
78use Yajra \DataTables \Contracts \DataTableScope ;
89use Yajra \DataTables \Contracts \DataTableButtons ;
9- use Yajra \DataTables \Html \Column ;
1010use Yajra \DataTables \Transformers \DataArrayTransformer ;
1111
1212abstract class DataTable implements DataTableButtons
@@ -462,15 +462,16 @@ private function exportColumns()
462462 * @param array $columns
463463 * @return Collection
464464 */
465- private function toColumnsCollection (array $ columns ) {
465+ private function toColumnsCollection (array $ columns )
466+ {
466467 $ collection = collect ();
467468 foreach ($ columns as $ column ) {
468469 if (isset ($ column ['data ' ])) {
469470 $ column ['title ' ] = $ column ['title ' ] ?? $ column ['data ' ];
470471 $ collection ->push (new Column ($ column ));
471472 } else {
472- $ data = [];
473- $ data ['data ' ] = $ column ;
473+ $ data = [];
474+ $ data ['data ' ] = $ column ;
474475 $ data ['title ' ] = $ column ;
475476 $ collection ->push (new Column ($ data ));
476477 }
You can’t perform that action at this time.
0 commit comments