<script type="text/javascript">
    jQuery(document).ready(function () {
        // dynamic table
        oTable = jQuery('#{{ $id }}').dataTable({
            "bProcessing": true,
            "bServerSide": true,
            "sAjaxSource": "/",
            "aoColumns": [
                @foreach($columns as $name => $label)
                { 'mData': '{{ $label }}' },
                @endforeach
            ]
        });
    });
</script>
<script type="text/javascript">
    jQuery(document).ready(function () {
        // dynamic table
        oTable = jQuery('#{{ $id }}').dataTable({
            "bProcessing": true,
            "bServerSide": true,
            "sAjaxSource": "{{ isset($options['route']) ? $options['route'] : '/' }}",
            "aoColumns": [
                @foreach($columns as $name => $label)
                { 'mData': '{{ $label }}' },
                @endforeach
            ]
        });
    });
</script>

Allow route option when creating a table 19
Allow route option when creating a table 19