title: Laravel 5 Populate a form from two different tables
body: <p>I stumbled upon a problem while creating a CRUD application in Laravel 5. In the edit section of a product I have 2 inputs that are populated from 'products' table and I have a dropdown list that needs to be populated with data from the categories table. The problem is that I don't know how to aproch the dropdown list. I generated the Form::model for the two inputs but I'm stuck at the dropdown list.</p>
  
  <p>Controller</p>
  
  <pre><code>public function edit($id)
  {
      $products_edit = products::find($id);
  
      return View::make('products.edit')-&gt;with('products_edit', $products_edit);
  }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>{!! Form::model($products_edit, array('route' =&gt; array('products.update', $products_edit-&gt;id), 'method' =&gt; 'PUT')) !!}
  
  &lt;div class="form-group"&gt;
      {!! Form::label('name', 'Nume') !!}
      {!! Form::input('text', 'name', $products_edit-&gt;product_name, array('class' =&gt; 'form-control')) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::label('price', 'Cost') !!}
      {!! Form::input('number', 'price', $products_edit-&gt;product_price, array('class' =&gt; 'form-control')) !!}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      {!! Form::label('category', 'Categorie') !!} &lt;br /&gt;
      {!! Form::select('category', &lt;!-- insert var here --&gt;, array('class' =&gt; 'form-control') !!}
  &lt;/div&gt;
  </code></pre>