I am using laravel 5.6. I am facing error when I use rawColumns . But it works sometimes then shows error. "exception": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException",
Here is my controller
return DataTables::of($item_data)
->addColumn('update', function ($item_data){
return '<input type="text" name="item_unit_price">';
})
->addColumn('action', function ($item_data) {
return '<a href="' . url('item-delete/'.$item_data->id) .'">Delete</a> ';
})
->rawColumns(['update', 'action'])
->make(true);
Here is my ajax
"columns":[
{ "data": 'item_name' },
{ "data": 'tp_item_unit'},
{ "data": 'item_unit_price'},
{ "data": 'item_quantity'},
{ "data": 'item_sell' },
{ "data": 'update' },
{data: 'action', orderable: false, searchable: false},
]
});
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/33FNPO7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire