refresh datatable after database update
<p>In my html page,I have a table that displays data that come from my database. I want refresh the datatable when my database is updated without refresh all the page. I'm using PHP framwork Laravel.</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table id="example" class="table"&gt;
    &lt;thead&gt;
    &lt;tr class="headings"&gt;
        &lt;th&gt;ID &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/th&gt;
        &lt;th&gt;first name &lt;/th&gt;
        &lt;th&gt;last name &lt;/th&gt;
        &lt;th&gt;E-mail &lt;/th&gt;
        &lt;th&gt;birthday &lt;/th&gt;
    &lt;/tr&gt;
    &lt;/thead&gt;

    &lt;tbody&gt;
    @foreach ($users as $user)
    &lt;tr class="even pointer"&gt;
        &lt;td class=" "&gt;{{ $user-&gt;id }}&lt;/td&gt;
        &lt;td class=" "&gt;{{ $user-&gt;name }}&lt;/td&gt;
        &lt;td class=" "&gt;{{ $user-&gt;name2 }}&lt;/td&gt;
        &lt;td class=" "&gt;{{ $user-&gt;email }}&lt;/td&gt;
        &lt;td class=" "&gt;{{ $user-&gt;birthday }}&lt;/td&gt;
    &lt;/tr&gt;
    @endforeach
    &lt;/tbody&gt;
&lt;/table&gt;</code></pre>
</div>
</div>
</p>