title: Form::Select from database model in Laravel
body: <p>I have a table in a database (Candies) created from an Eloquent Model and I'm trying to generate a dropdown list using <code>Illumnate\html 'form::select'</code> with the values stored in the Candies table from the Candy_Flavor column.</p>
  
  <p>I'm new to Laravel and after a few hours I was able to call the list in a regular unordered list, but I can't figure out how to pass in the values from the DB to the list. Am I missing something? </p>
  
  <h3>CandyController.php</h3>
  
  <pre><code>class CandyController extends Controller
  {
  public function candy(candy $candy)
  {
      $data = $candy-&gt;all();
      return view('pages.candy')-&gt;with('candies', $data);
  }
  </code></pre>
  
  <p>}</p>
  
  <h3>Candy.blade.php</h3>
  
  <pre><code>@extends ('master')
  @section ('content')
      {!! Form::open() !!}
      &lt;div class="form-group"&gt;
          {!! Form::label('name', 'Choose your flavor:') !!}
          {!! form::select('$candy-&gt;$candy_flavor') !!}
      &lt;/div&gt;
  {!! Form::close() !!}
  @stop
  </code></pre>