<script type="text/javascript">
    jQuery(document).ready(function () {
        // dynamic table
        oTable = jQuery('#{{ $id }}').DataTable({
            "processing": true,
            "serverSide": true,
            "ajax": "/",
            "columns": [
                @foreach($columns as $name => $label)
                { 'data': '{{ $label }}' },
                @endforeach
            ]
        });
    });
</script>
<script type="text/javascript">
    jQuery(document).ready(function () {
        // dynamic table
        oTable = jQuery('#{{ $id }}').DataTable({
            "processing": true,
            "serverSide": true,
            "ajax": "{{ isset($options['route']) ? $options['route'] : '/' }}",
            "columns": [
                @foreach($columns as $name => $label)
                { 'data': '{{ $label }}' },
                @endforeach
            ]
        });
    });
</script>

Allow route option when creating a table 110
Allow route option when creating a table 110