title: Laravel-5 how to populate select box from database with id value and name value
body: <p>I want to create a select box like the one below using <a href="https://github.com/illuminate/html/" rel="noreferrer">illuminate\html</a> :</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;select&gt;
      &lt;option value="$item-&gt;id"&gt;$item-&gt;name&lt;/option&gt;
      &lt;option value="$item-&gt;id"&gt;$item-&gt;name&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>In my controller I tried this:</p>
  
  <pre class="lang-php prettyprint-override"><code>public function create()
  {
      $items = Items::all(['id', 'name']);
  
      return view('prices.create', compact('id', 'items'));
  }
  </code></pre>
  
  <p>And in my view this:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;div class="form-group"&gt;
      {!! Form::Label('item', 'Item:') !!}
      {!! Form::select('item_id', $items, null, ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  </code></pre>
  
  <p>The issue is that instead of <code>$item-&gt;name</code> is displaying all the info of the entity. </p>