Laravel 5.1 DB:select toArray()
<p>I have a large SQL statement that I am executing like so:</p>

<pre><code>$result = DB::select($sql);
</code></pre>

<p>For example</p>

<pre><code>$result = DB::select('select * from users');
</code></pre>

<p>I'd like the result to be an array - but at the moment it returns a structure like so, an array with Objects...</p>

<pre><code>Array
(
    0 =&gt; stdClass::__set_state(array(
        'id' =&gt; 1,
        'first_name' =&gt; 'Pavel',
        'created_at' =&gt; '2015-02-23 05:46:33',
    )),
    1 =&gt; stdClass::__set_state(array(
        'id' =&gt; 2,
        'first_name' =&gt; 'Eugene',
        'created_at' =&gt; '2016-02-23 05:46:34',
    )),
...etc...
</code></pre>

<p>)</p>