Img Datatable with ajax in laravel
Img Datatable with ajax in laravel

Hi!, im new using this library and i need to display and img from my public folder.
I read the column render doc but i dont really understand.
Could someone help me this is my ajax code:
$(document).ready(function(){
listar();});
var listar = function (){
var table = $('#productos').DataTable({
"processing": true,
"serverSide": true,
"ajax": "ajaxProducto",
"columns":[
{data:'id'},
{data:'nombre'},
{data:'stock'},
{data:'imagen'},
],
"language": idioma_esp});}
the data:imagen is where i store the name of the img.
Hope someone can help me.
Thanks.
This discussion has been closed.