change a laravel collection format for dropdown
<p>With Laravel, I generate my list of object like that:</p>

<pre><code>return Federation::lists('name','id');
</code></pre>

<p>So, this returns me [1 => 'elt1', 2 => 'elt2'] , etc</p>

<p>What I need is transform it to:</p>

<pre><code>[{value =&gt; 1, text =&gt; 'elt1'},{value =&gt; 2, text =&gt; 'elt2'}]
</code></pre>

<p>is it a way to do it??</p>