Dropdown menu with eloquent
<p>I have a form and I want to give user ability to choose user in a drop down, but when I return the data it gives me an object, How can I make a drop down select for each user in array. </p>

<p>This is my code </p>

<p>view </p>

<pre><code>{!! Form::select('users', array($users),null, ['placeholder' =&gt; 'Pick a user']) !!}
</code></pre>

<p>controller</p>

<pre><code>$users = User::lists('name');
return view('view')-&gt;with('users', $users);
</code></pre>

<p>now it returns </p>

<pre><code>Placeholder
["user1", "user2"]
</code></pre>