Retrieve data from mySQL table in a array : <p>I have a data table named <code>CallTriggers</code> with the attributs </p>

<pre><code>cloturer = 0 or 1
created_at
</code></pre>

<p>and I want to get all the data like this</p>

<pre><code>$array = [
           ['Month', 'Total Call', 'Close'],
           ['Jan', 57, 50],
           ['Feb', 67, 60],
           ['Mar', 40, 40],
           ['Apr', 33, 30],
           ['May', 70, 66]
       ];
</code></pre>

<p><code>Example:</code> ['Jan', 57, 50] here jan is the month, 57 is number of call in the month with value 1 and 50 is number of that the value is 0 in database.</p>

<p>How can I perform that kind of operation with <code>Laravel 5.6</code>? Thanks</p>
